aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-12-28 18:20:30 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-04 18:37:04 +0100
commitfa37965ab08ce66875be15f340e54f4c283075d9 (patch)
tree4e113b00707a40422a68384d32f85cef3e6d1746
parent3c7571e61b59ea4db332f31ebf27f462ffa3292f (diff)
downloadlibssh-fa37965ab08ce66875be15f340e54f4c283075d9.tar.gz
libssh-fa37965ab08ce66875be15f340e54f4c283075d9.tar.xz
libssh-fa37965ab08ce66875be15f340e54f4c283075d9.zip
cmake: Add a define to see if we have ecc support.
-rw-r--r--ConfigureChecks.cmake3
-rw-r--r--config.h.cmake4
2 files changed, 7 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 197ae21d..80ab7599 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -85,6 +85,9 @@ if (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
set(HAVE_OPENSSL_ECC 1)
endif (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
+if (HAVE_OPENSSL_ECC)
+ set(HAVE_ECC 1)
+endif (HAVE_OPENSSL_ECC)
# FUNCTIONS
check_function_exists(strncpy HAVE_STRNCPY)
diff --git a/config.h.cmake b/config.h.cmake
index 334e8459..67a6b204 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -47,8 +47,12 @@
/* Define to 1 if you have the <pthread.h> header file. */
#cmakedefine HAVE_PTHREAD_H 1
+/* Define to 1 if you have eliptic curve cryptography in openssl */
#cmakedefine HAVE_OPENSSL_ECC 1
+/* Define to 1 if you have eliptic curve cryptography */
+#cmakedefine HAVE_ECC 1
+
/*************************** FUNCTIONS ***************************/
/* Define to 1 if you have the `snprintf' function. */