mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-28 17:41:28 +03:00
cmake: Add a define to see if we have ecc support.
This commit is contained in:
parent
3c7571e61b
commit
fa37965ab0
@ -85,6 +85,9 @@ if (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
|
|||||||
set(HAVE_OPENSSL_ECC 1)
|
set(HAVE_OPENSSL_ECC 1)
|
||||||
endif (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
|
endif (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H)
|
||||||
|
|
||||||
|
if (HAVE_OPENSSL_ECC)
|
||||||
|
set(HAVE_ECC 1)
|
||||||
|
endif (HAVE_OPENSSL_ECC)
|
||||||
# FUNCTIONS
|
# FUNCTIONS
|
||||||
|
|
||||||
check_function_exists(strncpy HAVE_STRNCPY)
|
check_function_exists(strncpy HAVE_STRNCPY)
|
||||||
|
@ -47,8 +47,12 @@
|
|||||||
/* Define to 1 if you have the <pthread.h> header file. */
|
/* Define to 1 if you have the <pthread.h> header file. */
|
||||||
#cmakedefine HAVE_PTHREAD_H 1
|
#cmakedefine HAVE_PTHREAD_H 1
|
||||||
|
|
||||||
|
/* 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 */
|
||||||
|
#cmakedefine HAVE_ECC 1
|
||||||
|
|
||||||
/*************************** FUNCTIONS ***************************/
|
/*************************** FUNCTIONS ***************************/
|
||||||
|
|
||||||
/* Define to 1 if you have the `snprintf' function. */
|
/* Define to 1 if you have the `snprintf' function. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user