diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-08-06 21:38:33 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-08-06 21:38:33 +0100 |
commit | 63f0dbe0ca0aba7be3bc8807f45c8703a1cfafe1 (patch) | |
tree | 83b9032cfb929867f495cffaf20a7b40a41b4e29 | |
parent | 5597be318c5e115d2a9502d81038a8a279bea38c (diff) |
OpenSSL: fix complile on pre-EC-capable library versions
-rw-r--r-- | src/src/tls-openssl.c | 8 |
1 files 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; |