summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-07-10 12:09:44 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-07-10 12:09:44 +0000
commit249192daa01d83a62e2f5c55256d9c88a567cfc7 (patch)
tree4fe1cd49c4b82f5a8055f6f9469409c457eeb497 /lib
parentd5a1c44dd415d9848a5c474bf71d77277958645d (diff)
One sure hopes that OPENSSL_cleanse will:
/* Clear password from memory */
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/pkcs12/p12_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/pkcs12/p12_key.c b/lib/libssl/src/crypto/pkcs12/p12_key.c
index a2f7db82679..ff69b8ebc54 100644
--- a/lib/libssl/src/crypto/pkcs12/p12_key.c
+++ b/lib/libssl/src/crypto/pkcs12/p12_key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p12_key.c,v 1.17 2014/07/10 10:01:23 miod Exp $ */
+/* $OpenBSD: p12_key.c,v 1.18 2014/07/10 12:09:43 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -87,7 +87,7 @@ PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,
if (ret <= 0)
return 0;
if (unipass) {
- OPENSSL_cleanse(unipass, uniplen); /* Clear password from memory */
+ OPENSSL_cleanse(unipass, uniplen);
free(unipass);
}
return ret;