projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5597be3
)
OpenSSL: fix complile on pre-EC-capable library versions
author
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 6 Aug 2015 20:38:33 +0000
(21:38 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 6 Aug 2015 20:38:33 +0000
(21:38 +0100)
src/src/tls-openssl.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/tls-openssl.c
b/src/src/tls-openssl.c
index d8377fd8cc8c86d46edb76b4031fa00120c00afb..b1dccb8eeeb201b6068ab6d3840d1ce6e2bca286 100644
(file)
--- 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;