aboutsummaryrefslogtreecommitdiff
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
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>
-rw-r--r--ConfigureChecks.cmake4
-rw-r--r--config.h.cmake3
2 files changed, 7 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)
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