aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2015-09-25 11:51:45 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2015-09-25 11:51:45 +0200
commit84a85803b4c83b8dac03b0d0aba58b48c98253e6 (patch)
tree49a81eadd56dce1152ac405c1ddc8b62dbe82369 /ConfigureChecks.cmake
parentd46fe6a51c0e18a3d23e05c7cc81186acc319271 (diff)
downloadlibssh-84a85803b4c83b8dac03b0d0aba58b48c98253e6.tar.gz
libssh-84a85803b4c83b8dac03b0d0aba58b48c98253e6.tar.xz
libssh-84a85803b4c83b8dac03b0d0aba58b48c98253e6.zip
crypto: old-fashioned aes_ctr when evp_aes_ctr is missing
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index c0326c20..0d068b9c 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -89,6 +89,15 @@ if (OPENSSL_FOUND)
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
check_include_file(openssl/ecdsa.h HAVE_OPENSSL_ECDSA_H)
+
+ set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
+ set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
+ check_symbol_exists(EVP_aes_128_ctr openssl/evp.h HAVE_OPENSSL_EVP_AES_CTR)
+
+ set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
+ set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
+ check_symbol_exists(EVP_aes_128_cbc openssl/evp.h HAVE_OPENSSL_EVP_AES_CBC)
+
endif()
if (CMAKE_HAVE_PTHREAD_H)