diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 16c6c0ff5ffeb1..cea7e95f853aee 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1085,8 +1085,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;