summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-07-10 12:09:43 +0000
committerjsing <jsing@openbsd.org>2014-07-10 12:09:43 +0000
commit99a4cb7549d5d641b7ddadf1a3a96273bb118295 (patch)
tree28b1e381268aa374dcde22298b6606b12f569bd9 /lib
parentRemove #if 0 code which dumps your data to stdout. (diff)
downloadwireguard-openbsd-99a4cb7549d5d641b7ddadf1a3a96273bb118295.tar.xz
wireguard-openbsd-99a4cb7549d5d641b7ddadf1a3a96273bb118295.zip
One sure hopes that OPENSSL_cleanse will:
/* Clear password from memory */
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/pkcs12/p12_key.c4
-rw-r--r--lib/libssl/src/crypto/pkcs12/p12_key.c4
2 files changed, 4 insertions, 4 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;
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;