From bb42cb2c4df2e29f11abb70ecf0ff69eb48c4bfd Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 8 Jul 2026 20:45:57 +0200 Subject: [PATCH] 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 3ba252e2a6fe04d17ea13ad870698a4028c8ab4c #1644 Closes #2255 --- src/openssl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openssl.h b/src/openssl.h index 130f602b..5c854322 100644 --- a/src/openssl.h +++ b/src/openssl.h @@ -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