freebsd-ports/security/libssh2/files/patch-src_openssl.h
Felix Palmen 742d2cce37 security/libssh2: Import upstream libressl-3.5 fix
Backport upstream commit instead of using own local patch. Also bump
port revision, it will change the binary when built with libressl.

Approved by:		sbz (maintainer, timeout), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D37278
2022-11-24 12:12:04 +01:00

17 lines
491 B
C

Backported from upstream commit
<https://github.com/libssh2/libssh2/commit/b952674f>
--- src/openssl.h.orig 2021-05-14 21:36:06 UTC
+++ src/openssl.h
@@ -57,8 +57,9 @@
#include <openssl/pem.h>
#include <openssl/rand.h>
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
- !defined(LIBRESSL_VERSION_NUMBER)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && \
+ !defined(LIBRESSL_VERSION_NUMBER)) || \
+ LIBRESSL_VERSION_NUMBER >= 0x3050000fL
# define HAVE_OPAQUE_STRUCTS 1
#endif