aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-02-23 16:54:26 +0100
committerAndreas Schneider <asn@cryptomilk.org>2017-02-23 16:54:26 +0100
commitc7e9dc2ee39d08798c6a608fc06109287dfae774 (patch)
treec518eb8e6fce63a68fab949a1fb37b0fff97aa44 /ConfigureChecks.cmake
parent166b9f7709df13b18f7d5942625338da131f390b (diff)
downloadlibssh-c7e9dc2ee39d08798c6a608fc06109287dfae774.tar.gz
libssh-c7e9dc2ee39d08798c6a608fc06109287dfae774.tar.xz
libssh-c7e9dc2ee39d08798c6a608fc06109287dfae774.zip
cmake: Check for EVP_CIPHER_CTX_new
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
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)