summaryrefslogtreecommitdiff
path: root/lib/libcrypto/rsa/rsa_eay.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-09-10 15:56:27 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-09-10 15:56:27 +0000
commit4b185770bb48b33b3458575b4dd273d9e9e5b60a (patch)
treefdb63280eeb935a98b2cf72fae41e177686c15ea /lib/libcrypto/rsa/rsa_eay.c
parent3a518e4ad573c57d1cc478fe3257cbd80f7098fc (diff)
Correct spelling of OPENSSL_cleanse.
ok miod@
Diffstat (limited to 'lib/libcrypto/rsa/rsa_eay.c')
-rw-r--r--lib/libcrypto/rsa/rsa_eay.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libcrypto/rsa/rsa_eay.c b/lib/libcrypto/rsa/rsa_eay.c
index 940964cac30..76863e7220e 100644
--- a/lib/libcrypto/rsa/rsa_eay.c
+++ b/lib/libcrypto/rsa/rsa_eay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_eay.c,v 1.39 2015/06/13 08:38:10 doug Exp $ */
+/* $OpenBSD: rsa_eay.c,v 1.40 2015/09/10 15:56:25 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -110,6 +110,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <openssl/opensslconf.h>
@@ -242,7 +243,7 @@ err:
BN_CTX_free(ctx);
}
if (buf != NULL) {
- OPENSSL_cleanse(buf, num);
+ explicit_bzero(buf, num);
free(buf);
}
return r;
@@ -472,7 +473,7 @@ err:
BN_CTX_free(ctx);
}
if (buf != NULL) {
- OPENSSL_cleanse(buf, num);
+ explicit_bzero(buf, num);
free(buf);
}
return r;
@@ -607,7 +608,7 @@ err:
BN_CTX_free(ctx);
}
if (buf != NULL) {
- OPENSSL_cleanse(buf, num);
+ explicit_bzero(buf, num);
free(buf);
}
return r;
@@ -712,7 +713,7 @@ err:
BN_CTX_free(ctx);
}
if (buf != NULL) {
- OPENSSL_cleanse(buf, num);
+ explicit_bzero(buf, num);
free(buf);
}
return r;