aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorDirkjan Bussink <d.bussink@gmail.com>2020-12-22 19:23:13 +0100
committerJakub Jelen <jjelen@redhat.com>2021-01-11 10:45:22 +0100
commitda36ecd6f25027c8767cd1132229450d699bd49f (patch)
tree5cd90bb5a94962e8e87b88b6efdec2aaaf278759 /include/libssh
parent385ac0911dfc4db7955a0a8ee78b6b0cd189026d (diff)
downloadlibssh-da36ecd6f25027c8767cd1132229450d699bd49f.tar.gz
libssh-da36ecd6f25027c8767cd1132229450d699bd49f.tar.xz
libssh-da36ecd6f25027c8767cd1132229450d699bd49f.zip
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 <d.bussink@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libcrypto.h2
1 files changed, 1 insertions, 1 deletions
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