diff options
author | Richard Levitte <levitte@openssl.org> | 2005-01-27 12:42:28 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2005-01-27 12:42:28 +0100 |
commit | 8c3c570134336e915b2b6aeb2203f034f5a29a01 (patch) | |
tree | 4a42845f4f53df50501d335aaa3e7d3a9bc1d17c /crypto/pem | |
parent | Oops, == should really be = when used with test ([ and ]). (diff) | |
download | openssl-8c3c570134336e915b2b6aeb2203f034f5a29a01.tar.xz openssl-8c3c570134336e915b2b6aeb2203f034f5a29a01.zip |
The first argument to load_iv should really be a char ** instead of an
unsigned char **, since it points at text.
Thanks to Nils Larsch <nils.larsch@cybertrust.com> for pointing out
the inelegance of our code :-)
Diffstat (limited to 'crypto/pem')
-rw-r--r-- | crypto/pem/pem_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c index 565c3e54a5..81c4aba235 100644 --- a/crypto/pem/pem_lib.c +++ b/crypto/pem/pem_lib.c @@ -73,7 +73,7 @@ const char *PEM_version="PEM" OPENSSL_VERSION_PTEXT; #define MIN_LENGTH 4 -static int load_iv(unsigned char **fromp,unsigned char *to, int num); +static int load_iv(char **fromp,unsigned char *to, int num); static int check_pem(const char *nm, const char *name); int PEM_def_callback(char *buf, int num, int w, void *key) @@ -481,16 +481,16 @@ int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher) PEMerr(PEM_F_PEM_GET_EVP_CIPHER_INFO,PEM_R_UNSUPPORTED_ENCRYPTION); return(0); } - if (!load_iv((unsigned char **)header_pp,&(cipher->iv[0]),enc->iv_len)) + if (!load_iv(header_pp,&(cipher->iv[0]),enc->iv_len)) return(0); return(1); } -static int load_iv(unsigned char **fromp, unsigned char *to, int num) +static int load_iv(char **fromp, unsigned char *to, int num) { int v,i; - unsigned char *from; + char *from; from= *fromp; for (i=0; i<num; i++) to[i]=0; |