From b952674f120748174ed2c0fb93e7bd78cf355cac Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 19 May 2022 18:35:16 +0200 Subject: [PATCH] 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 --- src/openssl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openssl.h b/src/openssl.h index 5704e1eb..60c0c2c3 100644 --- a/src/openssl.h +++ b/src/openssl.h @@ -95,7 +95,8 @@ #include #if (OPENSSL_VERSION_NUMBER >= 0x10100000L && \ - !defined(LIBRESSL_VERSION_NUMBER)) || defined(LIBSSH2_WOLFSSL) + !defined(LIBRESSL_VERSION_NUMBER)) || defined(LIBSSH2_WOLFSSL) || \ + LIBRESSL_VERSION_NUMBER >= 0x3050000fL /* For wolfSSL, whether the structs are truly opaque or not, it's best to not * rely on their internal data members being exposed publicly. */ # define HAVE_OPAQUE_STRUCTS 1