summaryrefslogtreecommitdiff
path: root/mail-mta/postfix/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-06-30 08:49:38 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-06-30 08:49:38 +0100
commitb2be182d49eea46686b5cf2680d457df61e89dc4 (patch)
treec66442ced2011c5ca81c3114cc51041e314c6d33 /mail-mta/postfix/files
parente23cdda4dbb0c83b9e682ab5e916085a35203da5 (diff)
gentoo resync : 30.06.2018
Diffstat (limited to 'mail-mta/postfix/files')
-rw-r--r--mail-mta/postfix/files/postfix-libressl-eccurve.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/mail-mta/postfix/files/postfix-libressl-eccurve.patch b/mail-mta/postfix/files/postfix-libressl-eccurve.patch
new file mode 100644
index 000000000000..7ce14fd17ad6
--- /dev/null
+++ b/mail-mta/postfix/files/postfix-libressl-eccurve.patch
@@ -0,0 +1,16 @@
+Bug: https://bugs.gentoo.org/659224
+$OpenBSD: patch-src_tls_tls_dh_c,v 1.2 2017/02/04 22:09:44 sthen Exp $
+
+Fix building with LibreSSL
+
+--- src/tls/tls_dh.c.orig Mon Dec 26 18:47:24 2016
++++ src/tls/tls_dh.c Sat Feb 4 01:45:39 2017
+@@ -314,7 +314,7 @@ void tls_auto_eecdh_curves(SSL_CTX *ctx)
+ * This is a NOP in OpenSSL 1.1.0 and later, where curves are always
+ * auto-negotiated.
+ */
+-#if OPENSSL_VERSION_NUMBER < 0x10100000UL
++#if OPENSSL_VERSION_NUMBER < 0x10100000UL || defined(LIBRESSL_VERSION_NUMBER)
+ if (SSL_CTX_set_ecdh_auto(ctx, 1) <= 0) {
+ msg_warn("failed to enable automatic ECDHE curve selection");
+ tls_print_errors();