summaryrefslogtreecommitdiff
blob: 7ce14fd17ad69d7c47d282573a07db2c28ee0d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();