aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2021-10-23 17:08:00 +0000
committerBernard Spil <brnrd@FreeBSD.org>2021-10-23 17:08:00 +0000
commit0c86d31161b9f576267e5d9cea2f5e18bf89fd2c (patch)
treedfa89b76fe4434381a6d3e7dd254da61dc85dd8a
parent45f4d6c66c67a060e3854ddfd9e9982e7ec431a2 (diff)
downloadports-0c86d31161b9f576267e5d9cea2f5e18bf89fd2c.tar.gz
ports-0c86d31161b9f576267e5d9cea2f5e18bf89fd2c.zip
mail/fetchmail: Fix build with LibreSSL 3.4
PR: 259214 Approved by: Corey Halpin <chalpin cs wisc edu> (maintainer)
-rw-r--r--mail/fetchmail/files/patch-LibreSSL14
-rw-r--r--security/p5-Net-SSLeay/files/patch-LibreSSL16
2 files changed, 30 insertions, 0 deletions
diff --git a/mail/fetchmail/files/patch-LibreSSL b/mail/fetchmail/files/patch-LibreSSL
new file mode 100644
index 000000000000..15bb350256f2
--- /dev/null
+++ b/mail/fetchmail/files/patch-LibreSSL
@@ -0,0 +1,14 @@
+$OpenBSD: patch-tls-aux_h,v 1.1 2021/07/29 10:44:07 sthen Exp $
+
+Index: tls-aux.h
+--- tls-aux.h.orig
++++ tls-aux.h
+@@ -8,7 +8,7 @@
+ #ifdef SSL_ENABLE
+ #include <openssl/opensslv.h>
+
+-# if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x1010000fL
++# if OPENSSL_VERSION_NUMBER < 0x1010000fL
+ # undef OSSL110_API
+ # else
+ # define OSSL110_API 1
diff --git a/security/p5-Net-SSLeay/files/patch-LibreSSL b/security/p5-Net-SSLeay/files/patch-LibreSSL
new file mode 100644
index 000000000000..f8a126cb47b1
--- /dev/null
+++ b/security/p5-Net-SSLeay/files/patch-LibreSSL
@@ -0,0 +1,16 @@
+$OpenBSD: patch-SSLeay_xs,v 1.3 2021/09/01 15:04:37 bluhm Exp $
+
+https://github.com/radiator-software/p5-net-ssleay/pull/285/commits/3cea3697bfc75ab3e5f4725eb1588ed9c4bff27a
+
+Index: SSLeay.xs
+--- SSLeay.xs.orig
++++ SSLeay.xs
+@@ -6172,7 +6172,7 @@ SSL_total_renegotiations(ssl)
+ OUTPUT:
+ RETVAL
+
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
+ void
+ SSL_SESSION_get_master_key(s)
+ SSL_SESSION * s