From 7f55a033e5054529e5e69f06725dd02a573329b6 Mon Sep 17 00:00:00 2001 From: Charlie Li Date: Wed, 2 Mar 2022 19:50:56 -0500 Subject: [PATCH] Opaque structs in LibreSSL 3.5 [Retrieved (and backported) from: https://github.com/libssh2/libssh2/pull/682/commits/7f55a033e5054529e5e69f06725dd02a573329b6] Signed-off-by: Fabrice Fontaine --- src/openssl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openssl.h b/src/openssl.h index 3eef02368..c13542481 100644 --- a/src/openssl.h +++ b/src/openssl.h @@ -94,8 +94,8 @@ #include #include -#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \ - !defined(LIBRESSL_VERSION_NUMBER) +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || \ + (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x30500000L) # define HAVE_OPAQUE_STRUCTS 1 #endif