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

openssl: add missing check for LIBRESSL_VERSION_NUMBER before use

Fixes:
```
openssl.h:101:5: warning: "LIBRESSL_VERSION_NUMBER" is not defined [-Wundef]
     LIBRESSL_VERSION_NUMBER >= 0x3050000fL
     ^
```

Ref: https://github.com/libssh2/libssh2/issues/1115#issuecomment-1631845640
Closes #1117
This commit is contained in:
Viktor Szakats
2023-07-12 09:16:57 +00:00
parent 1209c16d93
commit 4a42f42e40

View File

@@ -99,7 +99,8 @@
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && \ #if (OPENSSL_VERSION_NUMBER >= 0x10100000L && \
!defined(LIBRESSL_VERSION_NUMBER)) || defined(LIBSSH2_WOLFSSL) || \ !defined(LIBRESSL_VERSION_NUMBER)) || defined(LIBSSH2_WOLFSSL) || \
LIBRESSL_VERSION_NUMBER >= 0x3050000fL (defined(LIBRESSL_VERSION_NUMBER) && \
LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
/* For wolfSSL, whether the structs are truly opaque or not, it's best to not /* For wolfSSL, whether the structs are truly opaque or not, it's best to not
* rely on their internal data members being exposed publicly. */ * rely on their internal data members being exposed publicly. */
# define HAVE_OPAQUE_STRUCTS 1 # define HAVE_OPAQUE_STRUCTS 1