From 8852fd3ac9988951fd1bd7f15890c828275a7483 Mon Sep 17 00:00:00 2001 From: Dirkjan Bussink Date: Sat, 12 Dec 2020 18:02:15 +0100 Subject: [PATCH] Remove unneeded HMAC_CTX_reset function This isn't referenced anywhere outside of the compatibility layer so it is unneeded. Signed-off-by: Dirkjan Bussink Reviewed-by: Jakub Jelen --- src/libcrypto-compat.c | 6 ------ src/libcrypto-compat.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/libcrypto-compat.c b/src/libcrypto-compat.c index d9857463..e20bbd7c 100644 --- a/src/libcrypto-compat.c +++ b/src/libcrypto-compat.c @@ -260,12 +260,6 @@ void HMAC_CTX_free(HMAC_CTX *ctx) } } -int HMAC_CTX_reset(HMAC_CTX *ctx) -{ - HMAC_CTX_init(ctx); - return 1; -} - #ifndef HAVE_OPENSSL_EVP_CIPHER_CTX_NEW EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) { diff --git a/src/libcrypto-compat.h b/src/libcrypto-compat.h index 31f361e8..ced8af35 100644 --- a/src/libcrypto-compat.h +++ b/src/libcrypto-compat.h @@ -36,7 +36,6 @@ void EVP_MD_CTX_free(EVP_MD_CTX *ctx); int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx); HMAC_CTX *HMAC_CTX_new(void); -int HMAC_CTX_reset(HMAC_CTX *ctx); void HMAC_CTX_free(HMAC_CTX *ctx); void DH_get0_pqg(const DH *dh,