From f7410405e4136bf0cd9997d2cf265348550a2960 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Sat, 23 Sep 2017 02:18:23 -0400 Subject: [PATCH] crypto: remove deprecated ECDH calls w/ OpenSSL 1.1 These are both no-ops in OpenSSL 1.1.0. PR-URL: https://github.com/nodejs/node/pull/16130 Reviewed-By: Ben Noordhuis Reviewed-By: Rod Vagg --- src/node_crypto.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 63b69b5e77e..b9faadeb96f 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1078,8 +1078,10 @@ void SecureContext::SetECDHCurve(const FunctionCallbackInfo& args) { node::Utf8Value curve(env->isolate(), args[0]); +#if OPENSSL_VERSION_NUMBER < 0x10100000L SSL_CTX_set_options(sc->ctx_, SSL_OP_SINGLE_ECDH_USE); SSL_CTX_set_ecdh_auto(sc->ctx_, 1); +#endif if (strcmp(*curve, "auto") == 0) return;