OpenSSL: fix complile on pre-EC-capable library versions
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 6 Aug 2015 20:38:33 +0000 (21:38 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 6 Aug 2015 20:38:33 +0000 (21:38 +0100)
src/src/tls-openssl.c

index d8377fd8cc8c86d46edb76b4031fa00120c00afb..b1dccb8eeeb201b6068ab6d3840d1ce6e2bca286 100644 (file)
@@ -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;