forked from Lainports/freebsd-ports
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
17 lines
491 B
C
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
|
|
|