diff options
author | jsing <> | 2015-09-10 15:56:26 +0000 |
---|---|---|
committer | jsing <> | 2015-09-10 15:56:26 +0000 |
commit | 1b9402de2dd1b97eca2be1996ed51c82f0663c92 (patch) | |
tree | 27c1922db8e3f519794fe6a13a1dfba3d4759090 /src/lib/libcrypto/rsa/rsa_sign.c | |
parent | e1b77a3f14ebb06ead650e78b43ddd6546237b0a (diff) | |
download | openbsd-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_sign.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_sign.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_sign.c b/src/lib/libcrypto/rsa/rsa_sign.c index db63c5f038..7be08f544b 100644 --- a/src/lib/libcrypto/rsa/rsa_sign.c +++ b/src/lib/libcrypto/rsa/rsa_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_sign.c,v 1.24 2015/07/19 18:29:31 miod Exp $ */ | 1 | /* $OpenBSD: rsa_sign.c,v 1.25 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 | * |
@@ -137,7 +137,7 @@ RSA_sign(int type, const unsigned char *m, unsigned int m_len, | |||
137 | *siglen = i; | 137 | *siglen = i; |
138 | 138 | ||
139 | if (type != NID_md5_sha1) { | 139 | if (type != NID_md5_sha1) { |
140 | OPENSSL_cleanse(tmps, (unsigned int)j + 1); | 140 | explicit_bzero(tmps, (unsigned int)j + 1); |
141 | free(tmps); | 141 | free(tmps); |
142 | } | 142 | } |
143 | return (ret); | 143 | return (ret); |
@@ -237,7 +237,7 @@ err: | |||
237 | if (sig != NULL) | 237 | if (sig != NULL) |
238 | X509_SIG_free(sig); | 238 | X509_SIG_free(sig); |
239 | if (s != NULL) { | 239 | if (s != NULL) { |
240 | OPENSSL_cleanse(s, (unsigned int)siglen); | 240 | explicit_bzero(s, (unsigned int)siglen); |
241 | free(s); | 241 | free(s); |
242 | } | 242 | } |
243 | return ret; | 243 | return ret; |