From 02174e41f5c6199fb6f00b1900e1ea89821db321 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 23 Mar 2020 12:28:20 +0100 Subject: openssl: adapt to functions marked as deprecated since version 3 OpenSSL 3 deprecates SSL_CTX_load_verify_locations and the MD4, DES functions we use. Fix the MD4 and SSL_CTX_load_verify_locations warnings. In configure, detect OpenSSL v3 and if so, inhibit the deprecation warnings. OpenSSL v3 deprecates the DES functions we use for NTLM and until we rewrite the code to use non-deprecated functions we better ignore these warnings as they don't help us. Closes #5139 --- lib/md4.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/md4.c') diff --git a/lib/md4.c b/lib/md4.c index 4dab6af7a..10e6fc537 100644 --- a/lib/md4.c +++ b/lib/md4.c @@ -29,6 +29,10 @@ #ifdef USE_OPENSSL #include +#if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3) +/* OpenSSL 3.0.0 marks the MD4 functions as deprecated */ +#define OPENSSL_NO_MD4 +#endif #endif /* USE_OPENSSL */ #ifdef USE_MBEDTLS -- cgit v1.2.3