diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2019-08-06 18:43:21 +0200 |
---|---|---|
committer | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2019-09-24 16:49:35 +0200 |
commit | a0b84a8cd541e1a5c9d9a1ab12cfa9e4b7f3aa9e (patch) | |
tree | 21c920eb828b6bc2d34908f0be14e74fd67d41a4 | |
parent | 97adbfe0877e19253769d02edb5d673d21a4eb14 (diff) | |
download | libssh-a0b84a8cd541e1a5c9d9a1ab12cfa9e4b7f3aa9e.tar.gz libssh-a0b84a8cd541e1a5c9d9a1ab12cfa9e4b7f3aa9e.tar.xz libssh-a0b84a8cd541e1a5c9d9a1ab12cfa9e4b7f3aa9e.zip |
cmake: Detect OpenSSL support for Ed25519
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
-rw-r--r-- | ConfigureChecks.cmake | 4 | ||||
-rw-r--r-- | config.h.cmake | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 1b2eeca3..7b66f1c4 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -146,6 +146,10 @@ if (OPENSSL_FOUND) check_function_exists(OPENSSL_ia32cap_loc HAVE_OPENSSL_IA32CAP_LOC) + set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) + set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) + check_symbol_exists(EVP_PKEY_ED25519 "openssl/evp.h" HAVE_OPENSSL_ED25519) + unset(CMAKE_REQUIRED_INCLUDES) unset(CMAKE_REQUIRED_LIBRARIES) endif() diff --git a/config.h.cmake b/config.h.cmake index 282cf8d2..b2f065d8 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -97,6 +97,9 @@ /* Define to 1 if you have gl_flags as a glob_t sturct member */ #cmakedefine HAVE_GLOB_GL_FLAGS_MEMBER 1 +/* Define to 1 if you have OpenSSL with Ed25519 support */ +#cmakedefine HAVE_OPENSSL_ED25519 1 + /*************************** FUNCTIONS ***************************/ /* Define to 1 if you have the `EVP_aes128_ctr' function. */ |