diff options
Diffstat (limited to 'src/lib/libcrypto/hmac/hm_pmeth.c')
-rw-r--r-- | src/lib/libcrypto/hmac/hm_pmeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/hmac/hm_pmeth.c b/src/lib/libcrypto/hmac/hm_pmeth.c index 255f4ece8b..c5ac6c00c0 100644 --- a/src/lib/libcrypto/hmac/hm_pmeth.c +++ b/src/lib/libcrypto/hmac/hm_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: hm_pmeth.c,v 1.8 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: hm_pmeth.c,v 1.9 2015/09/10 15:56:25 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2007. | 3 | * project 2007. |
4 | */ | 4 | */ |
@@ -124,7 +124,7 @@ pkey_hmac_cleanup(EVP_PKEY_CTX *ctx) | |||
124 | HMAC_CTX_cleanup(&hctx->ctx); | 124 | HMAC_CTX_cleanup(&hctx->ctx); |
125 | if (hctx->ktmp.data) { | 125 | if (hctx->ktmp.data) { |
126 | if (hctx->ktmp.length) | 126 | if (hctx->ktmp.length) |
127 | OPENSSL_cleanse(hctx->ktmp.data, hctx->ktmp.length); | 127 | explicit_bzero(hctx->ktmp.data, hctx->ktmp.length); |
128 | free(hctx->ktmp.data); | 128 | free(hctx->ktmp.data); |
129 | hctx->ktmp.data = NULL; | 129 | hctx->ktmp.data = NULL; |
130 | } | 130 | } |