mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
cmake: Enable ECC support for GCrypt 1.5.0 or newer.
This commit is contained in:
@@ -49,7 +49,7 @@ if (WITH_ZLIB)
|
|||||||
endif (WITH_ZLIB)
|
endif (WITH_ZLIB)
|
||||||
|
|
||||||
if (WITH_GCRYPT)
|
if (WITH_GCRYPT)
|
||||||
find_package(GCrypt REQUIRED)
|
find_package(GCrypt 1.5.0 REQUIRED)
|
||||||
if (NOT GCRYPT_FOUND)
|
if (NOT GCRYPT_FOUND)
|
||||||
message(FATAL_ERROR "Could not find GCrypt")
|
message(FATAL_ERROR "Could not find GCrypt")
|
||||||
endif (NOT GCRYPT_FOUND)
|
endif (NOT GCRYPT_FOUND)
|
||||||
|
|||||||
@@ -146,7 +146,11 @@ if (OPENSSL_FOUND)
|
|||||||
endif (OPENSSL_FOUND)
|
endif (OPENSSL_FOUND)
|
||||||
|
|
||||||
if (GCRYPT_FOUND)
|
if (GCRYPT_FOUND)
|
||||||
set(HAVE_LIBGCRYPT 1)
|
set(HAVE_LIBGCRYPT 1)
|
||||||
|
if (GCRYPT_VERSION VERSION_GREATER "1.4.6")
|
||||||
|
set(HAVE_GCRYPT_ECC 1)
|
||||||
|
set(HAVE_ECC 1)
|
||||||
|
endif (GCRYPT_VERSION VERSION_GREATER "1.4.6")
|
||||||
endif (GCRYPT_FOUND)
|
endif (GCRYPT_FOUND)
|
||||||
|
|
||||||
if (CMAKE_HAVE_THREADS_LIBRARY)
|
if (CMAKE_HAVE_THREADS_LIBRARY)
|
||||||
|
|||||||
@@ -50,6 +50,9 @@
|
|||||||
/* Define to 1 if you have eliptic curve cryptography in openssl */
|
/* Define to 1 if you have eliptic curve cryptography in openssl */
|
||||||
#cmakedefine HAVE_OPENSSL_ECC 1
|
#cmakedefine HAVE_OPENSSL_ECC 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have eliptic curve cryptography in gcrypt */
|
||||||
|
#cmakedefine HAVE_GCRYPT_ECC 1
|
||||||
|
|
||||||
/* Define to 1 if you have eliptic curve cryptography */
|
/* Define to 1 if you have eliptic curve cryptography */
|
||||||
#cmakedefine HAVE_ECC 1
|
#cmakedefine HAVE_ECC 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user