summaryrefslogtreecommitdiff
path: root/mail/postfix/files/patch-src_tls_tls__dh.c
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2017-05-20 18:34:55 +0000
committerBernard Spil <brnrd@FreeBSD.org>2017-05-20 18:34:55 +0000
commiteb15060f864edb6b815831ace32d3bd8b6bce79d (patch)
tree8e9346b0049717117bd773480b9a17870b871d00 /mail/postfix/files/patch-src_tls_tls__dh.c
parentUpdate to patchlevel 600. (diff)
mail/postfix: Fix x25519 kex with LibreSSL
PR: 216790 Obtained from: OpenBSD ports Approved by: ohauer (maintainer)
Diffstat (limited to 'mail/postfix/files/patch-src_tls_tls__dh.c')
-rw-r--r--mail/postfix/files/patch-src_tls_tls__dh.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/postfix/files/patch-src_tls_tls__dh.c b/mail/postfix/files/patch-src_tls_tls__dh.c
new file mode 100644
index 000000000000..686798d405eb
--- /dev/null
+++ b/mail/postfix/files/patch-src_tls_tls__dh.c
@@ -0,0 +1,15 @@
+$OpenBSD: patch-src_tls_tls_dh_c,v 1.1 2017/03/04 22:09:43 sthen Exp $
+
+Fix building with LibreSSL
+
+--- src/tls/tls_dh.c.orig 2016-12-26 23:47:24 UTC
++++ src/tls/tls_dh.c
+@@ -314,7 +314,7 @@ void tls_auto_eecdh_curves(SSL_CTX *c
+ * 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();