summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2015-08-06 21:38:33 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2015-08-06 21:38:33 +0100
commit63f0dbe0ca0aba7be3bc8807f45c8703a1cfafe1 (patch)
tree83b9032cfb929867f495cffaf20a7b40a41b4e29 /src
parent5597be318c5e115d2a9502d81038a8a279bea38c (diff)
OpenSSL: fix complile on pre-EC-capable library versions
Diffstat (limited to 'src')
-rw-r--r--src/src/tls-openssl.c8
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;