From da36ecd6f25027c8767cd1132229450d699bd49f Mon Sep 17 00:00:00 2001 From: Dirkjan Bussink Date: Tue, 22 Dec 2020 19:23:13 +0100 Subject: Move HMAC implementation to EVP API Now that the minimum OpenSSL version is 1.0.1, we know that the EVP HMAC API is always available. This switches to this API. The existing API is deprecated for OpenSSL 3.0. Signed-off-by: Dirkjan Bussink Reviewed-by: Jakub Jelen --- include/libssh/libcrypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libssh') diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h index a89cbd05..403c2d22 100644 --- a/include/libssh/libcrypto.h +++ b/include/libssh/libcrypto.h @@ -38,7 +38,7 @@ typedef EVP_MD_CTX* SHA256CTX; typedef EVP_MD_CTX* SHA384CTX; typedef EVP_MD_CTX* SHA512CTX; typedef EVP_MD_CTX* MD5CTX; -typedef HMAC_CTX* HMACCTX; +typedef EVP_MD_CTX* HMACCTX; #ifdef HAVE_ECC typedef EVP_MD_CTX *EVPCTX; #else -- cgit v1.2.3