diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-09-10 15:56:27 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-09-10 15:56:27 +0000 |
commit | 4b185770bb48b33b3458575b4dd273d9e9e5b60a (patch) | |
tree | fdb63280eeb935a98b2cf72fae41e177686c15ea /lib/libcrypto/rsa | |
parent | 3a518e4ad573c57d1cc478fe3257cbd80f7098fc (diff) |
Correct spelling of OPENSSL_cleanse.
ok miod@
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r-- | lib/libcrypto/rsa/rsa_eay.c | 11 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_saos.c | 6 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_sign.c | 6 |
3 files changed, 12 insertions, 11 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; diff --git a/lib/libcrypto/rsa/rsa_saos.c b/lib/libcrypto/rsa/rsa_saos.c index 3a07a7af4a4..0a4f37a3da2 100644 --- a/lib/libcrypto/rsa/rsa_saos.c +++ b/lib/libcrypto/rsa/rsa_saos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_saos.c,v 1.17 2015/07/19 18:29:31 miod Exp $ */ +/* $OpenBSD: rsa_saos.c,v 1.18 2015/09/10 15:56:25 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -97,7 +97,7 @@ RSA_sign_ASN1_OCTET_STRING(int type, const unsigned char *m, unsigned int m_len, else *siglen = i; - OPENSSL_cleanse(s, (unsigned int)j + 1); + explicit_bzero(s, (unsigned int)j + 1); free(s); return ret; } @@ -142,7 +142,7 @@ RSA_verify_ASN1_OCTET_STRING(int dtype, const unsigned char *m, err: M_ASN1_OCTET_STRING_free(sig); if (s != NULL) { - OPENSSL_cleanse(s, (unsigned int)siglen); + explicit_bzero(s, (unsigned int)siglen); free(s); } return ret; diff --git a/lib/libcrypto/rsa/rsa_sign.c b/lib/libcrypto/rsa/rsa_sign.c index db63c5f038e..7be08f544b0 100644 --- a/lib/libcrypto/rsa/rsa_sign.c +++ b/lib/libcrypto/rsa/rsa_sign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_sign.c,v 1.24 2015/07/19 18:29:31 miod Exp $ */ +/* $OpenBSD: rsa_sign.c,v 1.25 2015/09/10 15:56:25 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -137,7 +137,7 @@ RSA_sign(int type, const unsigned char *m, unsigned int m_len, *siglen = i; if (type != NID_md5_sha1) { - OPENSSL_cleanse(tmps, (unsigned int)j + 1); + explicit_bzero(tmps, (unsigned int)j + 1); free(tmps); } return (ret); @@ -237,7 +237,7 @@ err: if (sig != NULL) X509_SIG_free(sig); if (s != NULL) { - OPENSSL_cleanse(s, (unsigned int)siglen); + explicit_bzero(s, (unsigned int)siglen); free(s); } return ret; |