1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

wolfssl: guard OPENSSL_VERSION_NUMBER off for wolfSSL

It may cause a confusing compiler warning in some cases, and also not
needed for wolfSSL builds.

Follow-up to 3ba252e2a6 #1644

Closes #2255
This commit is contained in:
Viktor Szakats
2026-07-08 20:45:57 +02:00
parent c177d6c39b
commit bb42cb2c4d

View File

@@ -159,7 +159,8 @@
# define LIBSSH2_ED25519 1
#endif
#if OPENSSL_VERSION_NUMBER >= 0x30500000L && \
#if !defined(LIBSSH2_WOLFSSL) && \
OPENSSL_VERSION_NUMBER >= 0x30500000L && \
!defined(LIBRESSL_VERSION_NUMBER)
# define LIBSSH2_MLKEM 1
#else