summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-02-02 07:54:16 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2023-02-02 07:54:16 -0500
commit655158fa7a28c5ba76f455d5f46c9ea8b94faf74 (patch)
tree161f546fde709cf59b5579c0dca7583bc7551ab6 /deps
parentc438d0bb8327854b2c7d8ac5d82baf3bf6d1ed58 (diff)
downloadlibgit2-655158fa7a28c5ba76f455d5f46c9ea8b94faf74.tar.gz
Add OpenSSL deprection warning
Add `OPENSSL_API_COMPAT=0x10100000L` since we use the now-deprecated low-level hash functions.
Diffstat (limited to 'deps')
-rw-r--r--deps/ntlmclient/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/ntlmclient/CMakeLists.txt b/deps/ntlmclient/CMakeLists.txt
index 9c5e23d60..8356d4723 100644
--- a/deps/ntlmclient/CMakeLists.txt
+++ b/deps/ntlmclient/CMakeLists.txt
@@ -20,11 +20,13 @@ if(USE_HTTPS STREQUAL "SecureTransport")
set_source_files_properties("crypt_commoncrypto.c" COMPILE_FLAGS "-Wno-deprecated")
elseif(USE_HTTPS STREQUAL "OpenSSL")
add_definitions(-DCRYPT_OPENSSL)
+ add_definitions(-DOPENSSL_API_COMPAT=0x10100000L)
include_directories(${OPENSSL_INCLUDE_DIR})
set(SRC_NTLMCLIENT_CRYPTO "crypt_openssl.c" "crypt_openssl.h")
elseif(USE_HTTPS STREQUAL "OpenSSL-Dynamic")
add_definitions(-DCRYPT_OPENSSL)
add_definitions(-DCRYPT_OPENSSL_DYNAMIC)
+ add_definitions(-DOPENSSL_API_COMPAT=0x10100000L)
set(SRC_NTLMCLIENT_CRYPTO "crypt_openssl.c" "crypt_openssl.h")
elseif(USE_HTTPS STREQUAL "mbedTLS")
add_definitions(-DCRYPT_MBEDTLS)