From 63f0dbe0ca0aba7be3bc8807f45c8703a1cfafe1 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 6 Aug 2015 21:38:33 +0100 Subject: [PATCH] OpenSSL: fix complile on pre-EC-capable library versions --- src/src/tls-openssl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index d8377fd8c..b1dccb8ee 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -659,15 +659,15 @@ Returns: TRUE if OK (nothing to set up, or setup worked) static BOOL init_ecdh(SSL_CTX * sctx, host_item * host) { +#ifdef OPENSSL_NO_ECDH +return TRUE; +#else + EC_KEY * ecdh; uschar * exp_curve; int nid; BOOL rv; -#ifdef OPENSSL_NO_ECDH -return TRUE; -#else - if (host) /* No ECDH setup for clients, only for servers */ return TRUE; -- 2.25.1