diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_sign.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_sign.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_sign.c b/src/lib/libcrypto/asn1/a_sign.c index d9385312a7..195daa3b9f 100644 --- a/src/lib/libcrypto/asn1/a_sign.c +++ b/src/lib/libcrypto/asn1/a_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_sign.c,v 1.20 2015/07/19 18:29:31 miod Exp $ */ | 1 | /* $OpenBSD: a_sign.c,v 1.21 2015/09/10 15:56:24 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 | * |
@@ -112,6 +112,7 @@ | |||
112 | #include <sys/types.h> | 112 | #include <sys/types.h> |
113 | 113 | ||
114 | #include <stdio.h> | 114 | #include <stdio.h> |
115 | #include <string.h> | ||
115 | #include <time.h> | 116 | #include <time.h> |
116 | 117 | ||
117 | #include <openssl/bn.h> | 118 | #include <openssl/bn.h> |
@@ -229,11 +230,11 @@ ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2, | |||
229 | err: | 230 | err: |
230 | EVP_MD_CTX_cleanup(ctx); | 231 | EVP_MD_CTX_cleanup(ctx); |
231 | if (buf_in != NULL) { | 232 | if (buf_in != NULL) { |
232 | OPENSSL_cleanse((char *)buf_in, inl); | 233 | explicit_bzero((char *)buf_in, inl); |
233 | free(buf_in); | 234 | free(buf_in); |
234 | } | 235 | } |
235 | if (buf_out != NULL) { | 236 | if (buf_out != NULL) { |
236 | OPENSSL_cleanse((char *)buf_out, outll); | 237 | explicit_bzero((char *)buf_out, outll); |
237 | free(buf_out); | 238 | free(buf_out); |
238 | } | 239 | } |
239 | return (outl); | 240 | return (outl); |