From: Jeremy Harris Date: Thu, 6 Aug 2015 20:38:33 +0000 (+0100) Subject: OpenSSL: fix complile on pre-EC-capable library versions X-Git-Tag: exim-4_87_RC1~130 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=63f0dbe0ca0aba7be3bc8807f45c8703a1cfafe1;p=exim.git OpenSSL: fix complile on pre-EC-capable library versions --- 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;