summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorCharlie Li <git@vishwin.info>2022-07-03 20:44:41 -0400
committerCharlie Li <git@vishwin.info>2022-07-03 20:44:41 -0400
commit628ebbde6e93d5a8f6b28cfb449d55804952afaa (patch)
tree497e6ea9503dbf409e011ac68aee1792a15fa029 /deps
parent3847522e86e9c65be674f1372cefefdbfbe9ba2b (diff)
downloadlibgit2-628ebbde6e93d5a8f6b28cfb449d55804952afaa.tar.gz
ntlmclient: LibreSSL 3.5 removed HMAC_CTX_cleanup
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0-relnotes.txt Modify guard to declare dummy function.
Diffstat (limited to 'deps')
-rw-r--r--deps/ntlmclient/crypt_openssl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/ntlmclient/crypt_openssl.c b/deps/ntlmclient/crypt_openssl.c
index bab8276ac..c4be129d3 100644
--- a/deps/ntlmclient/crypt_openssl.c
+++ b/deps/ntlmclient/crypt_openssl.c
@@ -44,7 +44,9 @@ static inline void HMAC_CTX_free(HMAC_CTX *ctx)
#endif
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !LIBRESSL_VERSION_NUMBER) || defined(CRYPT_OPENSSL_DYNAMIC)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || \
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x03050000fL) || \
+ defined(CRYPT_OPENSSL_DYNAMIC)
static inline void HMAC_CTX_cleanup(HMAC_CTX *ctx)
{