mail/fetchmail: Fix build with LibreSSL 3.4

PR:		259214
Approved by:	Corey Halpin <chalpin cs wisc edu> (maintainer)
This commit is contained in:
Bernard Spil 2021-10-23 17:08:00 +00:00
parent 45f4d6c66c
commit 0c86d31161
2 changed files with 30 additions and 0 deletions

View file

@ -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

View file

@ -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