From 43cc87dd67fb18e2600ac6e162e8924c19c82606 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 16 Jan 2021 20:11:48 -0500 Subject: [PATCH] [build] adjust crypto vars in src/CMakeLists.txt --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c502a199..4dea2843 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -386,6 +386,7 @@ if(WITH_MBEDTLS) if(HAVE_MBEDTLS_SSL_H) check_library_exists(mbedcrypto mbedtls_base64_encode "" HAVE_LIBMBEDCRYPTO) if(HAVE_LIBMBEDCRYPTO) + add_definitions(-DHAVE_LIBMBEDCRYPTO) set(CRYPTO_LIBRARY mbedcrypto) check_library_exists(mbedtls mbedtls_cipher_info_from_type "" HAVE_LIBMBEDTLS) if(HAVE_LIBMBEDTLS) @@ -404,6 +405,7 @@ if(WITH_NSS) check_include_files(nss/nss.h HAVE_NSS_NSS_H) check_include_files(nss3/nss.h HAVE_NSS3_NSS_H) if(HAVE_NSS3_NSS_H OR HAVE_NSS_NSS_H) + add_definitions(-DHAVE_NSS_NSS_H) check_library_exists(ssl3 NSSSSL_GetVersion "" HAVE_LIBSSL3) if(HAVE_LIBSSL3) check_library_exists(smime3 NSSSMIME_GetVersion "" HAVE_LIBSMIME3) @@ -433,6 +435,7 @@ if(WITH_NETTLE) set(CMAKE_REQUIRED_INCLUDES) endif() if(HAVE_NETTLE_NETTLE_TYPES_H) + add_definitions(-DHAVE_NETTLE_NETTLE_TYPES_H) check_library_exists(nettle nettle_md5_init "" HAVE_LIBNETTLE) if(HAVE_LIBNETTLE) set(CRYPTO_LIBRARY nettle)