aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/pem/pem_lib.c
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2013-09-10 17:58:44 +0100
committerBen Laurie <ben@links.org>2013-09-10 18:04:08 +0100
commitedf92f1c41d8a60ec5a3483d0df84efb5b8372d9 (patch)
treeeabb756064954a5bec951fd62663d9e0024a08fc /crypto/pem/pem_lib.c
parent7a1a12232a84621271bf808107f3be9a2df5121a (diff)
downloadopenssl-edf92f1c41d8a60ec5a3483d0df84efb5b8372d9.tar.gz
Constification.
Diffstat (limited to 'crypto/pem/pem_lib.c')
-rw-r--r--crypto/pem/pem_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index 9e551d1795..5e41d85a6a 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -576,8 +576,8 @@ static int load_iv(char **fromp, unsigned char *to, int num)
}
#ifndef OPENSSL_NO_FP_API
-int PEM_write(FILE *fp, char *name, char *header, unsigned char *data,
- long len)
+int PEM_write(FILE *fp, const char *name, const char *header,
+ const unsigned char *data, long len)
{
BIO *b;
int ret;
@@ -594,8 +594,8 @@ int PEM_write(FILE *fp, char *name, char *header, unsigned char *data,
}
#endif
-int PEM_write_bio(BIO *bp, const char *name, char *header, unsigned char *data,
- long len)
+int PEM_write_bio(BIO *bp, const char *name, const char *header,
+ const unsigned char *data, long len)
{
int nlen,n,i,j,outl;
unsigned char *buf = NULL;