Skip to content

Commit b952674

Browse files
authored
Openssl: add support for LibreSSL 3.5.x (#700)
LibreSSL 3.5.0 made more structures opaque, so let's enable existing support for that when building against these LibreSSL versions. Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0-relnotes.txt Credit: Viktor Szakats
1 parent 4b057bd commit b952674

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/openssl.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
#include <openssl/rand.h>
9696

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

0 commit comments

Comments
 (0)