mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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 Backport-PR-URL: https://github.com/nodejs/node/pull/18622 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
1 parent
20cc0cfe5f
commit
f1d458be58
1 file changed
+2
@@ -1081,8 +1081,10 @@ void SecureContext::SetECDHCurve(const FunctionCallbackInfo<Value>& 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;
|
||||
|
||||
Reference in new issue
Block a user