diff options
author | Ben Laurie <ben@openssl.org> | 1999-04-17 21:25:43 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-04-17 21:25:43 +0000 |
commit | e778802f53c8d47e96a6e4cbc776eb6e1d4c461a (patch) | |
tree | 719d4dd0fc69b355c6d8329af1f90b2c4f603548 /crypto/pem/pem_lib.c | |
parent | d77b3054cd87c2b13fa0169931f74b8e0dac5252 (diff) | |
download | openssl-e778802f53c8d47e96a6e4cbc776eb6e1d4c461a.tar.gz |
Massive constification.
Diffstat (limited to 'crypto/pem/pem_lib.c')
-rw-r--r-- | crypto/pem/pem_lib.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c index 6aa7bd554f..780e20e1e6 100644 --- a/crypto/pem/pem_lib.c +++ b/crypto/pem/pem_lib.c @@ -68,7 +68,7 @@ #include "des.h" #endif -char *PEM_version="PEM" OPENSSL_VERSION_PTEXT; +const char *PEM_version="PEM" OPENSSL_VERSION_PTEXT; #define MIN_LENGTH 4 @@ -96,7 +96,7 @@ int w; return(-1); #else int i,j; - char *prompt; + const char *prompt; prompt=EVP_get_pw_prompt(); if (prompt == NULL) @@ -127,7 +127,7 @@ void PEM_proc_type(buf, type) char *buf; int type; { - char *str; + const char *str; if (type == PEM_TYPE_ENCRYPTED) str="ENCRYPTED"; @@ -145,7 +145,7 @@ int type; void PEM_dek_info(buf, type, len, str) char *buf; -char *type; +const char *type; int len; char *str; { @@ -169,7 +169,7 @@ char *str; #ifndef NO_FP_API char *PEM_ASN1_read(d2i,name,fp, x, cb) char *(*d2i)(); -char *name; +const char *name; FILE *fp; char **x; int (*cb)(); @@ -191,7 +191,7 @@ int (*cb)(); char *PEM_ASN1_read_bio(d2i,name,bp, x, cb) char *(*d2i)(); -char *name; +const char *name; BIO *bp; char **x; int (*cb)(); @@ -244,10 +244,10 @@ err: #ifndef NO_FP_API int PEM_ASN1_write(i2d,name,fp, x, enc, kstr, klen, callback) int (*i2d)(); -char *name; +const char *name; FILE *fp; char *x; -EVP_CIPHER *enc; +const EVP_CIPHER *enc; unsigned char *kstr; int klen; int (*callback)(); @@ -269,10 +269,10 @@ int (*callback)(); int PEM_ASN1_write_bio(i2d,name,bp, x, enc, kstr, klen, callback) int (*i2d)(); -char *name; +const char *name; BIO *bp; char *x; -EVP_CIPHER *enc; +const EVP_CIPHER *enc; unsigned char *kstr; int klen; int (*callback)(); @@ -280,7 +280,7 @@ int (*callback)(); EVP_CIPHER_CTX ctx; int dsize=0,i,j,ret=0; unsigned char *p,*data=NULL; - char *objstr=NULL; + const char *objstr=NULL; #define PEM_BUFSIZE 1024 char buf[PEM_BUFSIZE]; unsigned char key[EVP_MAX_KEY_LENGTH]; @@ -412,7 +412,7 @@ char *header; EVP_CIPHER_INFO *cipher; { int o; - EVP_CIPHER *enc=NULL; + const EVP_CIPHER *enc=NULL; char *p,c; cipher->cipher=NULL; @@ -515,7 +515,7 @@ long len; int PEM_write_bio(bp, name, header, data,len) BIO *bp; -char *name; +const char *name; char *header; unsigned char *data; long len; |