TLS: Fix ECDH use under LibreSSL. Bug 1806
authorRenaud Allard <renaud@allard.it>
Mon, 7 Mar 2016 19:04:34 +0000 (19:04 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Wed, 6 Apr 2016 20:31:27 +0000 (21:31 +0100)
src/src/tls-openssl.c

index 942f73eacf62c49cc611c6df3e306da6a556a294..c18cb1c8514516209e31dd81ad3d7b2ce9f07cb9 100644 (file)
@@ -74,7 +74,10 @@ functions from the OpenSSL library. */
     && (OPENSSL_VERSION_NUMBER & 0x0000ff000L) >= 0x000002000L
 #  define EXIM_HAVE_OPENSSL_CHECKHOST
 # endif
+#endif
 
+#if !defined(LIBRESSL_VERSION_NUMBER) \
+    || LIBRESSL_VERSION_NUMBER >= 0x20010000L
 # if !defined(OPENSSL_NO_ECDH)
 #  if OPENSSL_VERSION_NUMBER >= 0x0090800fL
 #   define EXIM_HAVE_ECDH