diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 4833a252..f5645807 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -114,6 +114,10 @@ if (OPENSSL_FOUND) set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) check_function_exists(CRYPTO_ctr128_encrypt HAVE_OPENSSL_CRYPTO_CTR128_ENCRYPT) + + set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) + set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) + check_function_exists(EVP_CIPHER_CTX_new HAVE_OPENSSL_EVP_CIPHER_CTX_NEW) endif() if (CMAKE_HAVE_PTHREAD_H) diff --git a/config.h.cmake b/config.h.cmake index 96090e7d..3f34f09b 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -94,6 +94,9 @@ /* Define to 1 if you have the `CRYPTO_ctr128_encrypt' function. */ #cmakedefine HAVE_OPENSSL_CRYPTO_CTR128_ENCRYPT 1 +/* Define to 1 if you have the `EVP_CIPHER_CTX_new' function. */ +#cmakedefine HAVE_OPENSSL_EVP_CIPHER_CTX_NEW 1 + /* Define to 1 if you have the `snprintf' function. */ #cmakedefine HAVE_SNPRINTF 1