summaryrefslogtreecommitdiff
path: root/lib/libcrypto/pkcs12
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
commit15472e31c60594ba5e8f2b2619f056470c3b11fc (patch)
tree299e52d80372fb10751151966a412dd7a2f8bcb7 /lib/libcrypto/pkcs12
parentec0c16d8591f91ebcd3e1e414fdd6c370e2ca3bd (diff)
One sure hopes that OPENSSL_cleanse will:
/* Clear password from memory */
Diffstat (limited to 'lib/libcrypto/pkcs12')
-rw-r--r--lib/libcrypto/pkcs12/p12_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/pkcs12/p12_key.c b/lib/libcrypto/pkcs12/p12_key.c
index a2f7db82679..ff69b8ebc54 100644
--- a/lib/libcrypto/pkcs12/p12_key.c
+++ b/lib/libcrypto/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;