summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2018-06-27 09:07:30 +0300
committerEray Aslan <eras@gentoo.org>2018-06-27 09:07:30 +0300
commit07c745adf5d94a8696c7830763e3714c467f95e6 (patch)
treef6d734e5785c38af57b34e79897429d335afe5a1 /mail-mta/postfix/files
parentwww-apache/passenger: add 5.3.3 (diff)
downloadgentoo-07c745adf5d94a8696c7830763e3714c467f95e6.tar.gz
gentoo-07c745adf5d94a8696c7830763e3714c467f95e6.tar.bz2
gentoo-07c745adf5d94a8696c7830763e3714c467f95e6.zip
mail-mta/postfix: fix eccurve selection for libressl
Closes: https://bugs.gentoo.org/659224 Package-Manager: Portage-2.3.40, Repoman-2.3.9
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();