1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

openssl.h: enable ed25519 for LibreSSL 3.7.0 (#778)

This brings LibreSSL libssh2 builds on par with OpenSSL.
This commit is contained in:
Viktor Szakats
2022-12-13 22:11:13 +01:00
committed by GitHub
parent 9f8e69cca0
commit 2e2812dde8

View File

@@ -122,8 +122,9 @@
# define LIBSSH2_ECDSA 1 # define LIBSSH2_ECDSA 1
#endif #endif
#if OPENSSL_VERSION_NUMBER >= 0x10101000L && \ #if (OPENSSL_VERSION_NUMBER >= 0x10101000L && \
!defined(LIBRESSL_VERSION_NUMBER) !defined(LIBRESSL_VERSION_NUMBER)) || \
LIBRESSL_VERSION_NUMBER >= 0x3070000fL
# define LIBSSH2_ED25519 1 # define LIBSSH2_ED25519 1
#else #else
# define LIBSSH2_ED25519 0 # define LIBSSH2_ED25519 0