summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_eay.c
diff options
context:
space:
mode:
authorjsing <>2015-09-10 15:56:26 +0000
committerjsing <>2015-09-10 15:56:26 +0000
commit1b9402de2dd1b97eca2be1996ed51c82f0663c92 (patch)
tree27c1922db8e3f519794fe6a13a1dfba3d4759090 /src/lib/libcrypto/rsa/rsa_eay.c
parente1b77a3f14ebb06ead650e78b43ddd6546237b0a (diff)
downloadopenbsd-1b9402de2dd1b97eca2be1996ed51c82f0663c92.tar.gz
openbsd-1b9402de2dd1b97eca2be1996ed51c82f0663c92.tar.bz2
openbsd-1b9402de2dd1b97eca2be1996ed51c82f0663c92.zip
Correct spelling of OPENSSL_cleanse.
ok miod@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_eay.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_eay.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_eay.c b/src/lib/libcrypto/rsa/rsa_eay.c
index 940964cac3..76863e7220 100644
--- a/src/lib/libcrypto/rsa/rsa_eay.c
+++ b/src/lib/libcrypto/rsa/rsa_eay.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_eay.c,v 1.39 2015/06/13 08:38:10 doug Exp $ */ 1/* $OpenBSD: rsa_eay.c,v 1.40 2015/09/10 15:56:25 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -110,6 +110,7 @@
110 */ 110 */
111 111
112#include <stdio.h> 112#include <stdio.h>
113#include <string.h>
113 114
114#include <openssl/opensslconf.h> 115#include <openssl/opensslconf.h>
115 116
@@ -242,7 +243,7 @@ err:
242 BN_CTX_free(ctx); 243 BN_CTX_free(ctx);
243 } 244 }
244 if (buf != NULL) { 245 if (buf != NULL) {
245 OPENSSL_cleanse(buf, num); 246 explicit_bzero(buf, num);
246 free(buf); 247 free(buf);
247 } 248 }
248 return r; 249 return r;
@@ -472,7 +473,7 @@ err:
472 BN_CTX_free(ctx); 473 BN_CTX_free(ctx);
473 } 474 }
474 if (buf != NULL) { 475 if (buf != NULL) {
475 OPENSSL_cleanse(buf, num); 476 explicit_bzero(buf, num);
476 free(buf); 477 free(buf);
477 } 478 }
478 return r; 479 return r;
@@ -607,7 +608,7 @@ err:
607 BN_CTX_free(ctx); 608 BN_CTX_free(ctx);
608 } 609 }
609 if (buf != NULL) { 610 if (buf != NULL) {
610 OPENSSL_cleanse(buf, num); 611 explicit_bzero(buf, num);
611 free(buf); 612 free(buf);
612 } 613 }
613 return r; 614 return r;
@@ -712,7 +713,7 @@ err:
712 BN_CTX_free(ctx); 713 BN_CTX_free(ctx);
713 } 714 }
714 if (buf != NULL) { 715 if (buf != NULL) {
715 OPENSSL_cleanse(buf, num); 716 explicit_bzero(buf, num);
716 free(buf); 717 free(buf);
717 } 718 }
718 return r; 719 return r;