aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/pem/pem_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-29 11:30:45 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-29 11:30:45 +0000
commit43d601641f3476962c580c3b0490874a6e79d260 (patch)
treec9b4b7cc1f30dfdb419930e45aabf8a46e43a460 /crypto/pem/pem_lib.c
parent55f78baf32f213301a0e8d6c6e7f40bd3b9857b1 (diff)
downloadopenssl-43d601641f3476962c580c3b0490874a6e79d260.tar.gz
A few more memset()s converted to OPENSSL_cleanse().
I *think* I got them all covered by now, bu please, if you find any more, tell me and I'll correct it. PR: 343
Diffstat (limited to 'crypto/pem/pem_lib.c')
-rw-r--r--crypto/pem/pem_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index d3e9ce8577..900af737ed 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -343,7 +343,7 @@ int PEM_ASN1_write_bio(int (*i2d)(), const char *name, BIO *bp, char *x,
* NOT taken from the BytesToKey function */
EVP_BytesToKey(enc,EVP_md5(),iv,kstr,klen,1,key,NULL);
- if (kstr == (unsigned char *)buf) memset(buf,0,PEM_BUFSIZE);
+ if (kstr == (unsigned char *)buf) OPENSSL_cleanse(buf,PEM_BUFSIZE);
OPENSSL_assert(strlen(objstr)+23+2*enc->iv_len+13 <= sizeof buf);