summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_sign.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_sign.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_sign.c6
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;