Skip to content

Commit f1d458b

Browse files
davidbengibfahn
authored andcommitted
crypto: remove deprecated ECDH calls w/ OpenSSL 1.1
These are both no-ops in OpenSSL 1.1.0. PR-URL: #16130 Backport-PR-URL: #18622 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 20cc0cf commit f1d458b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node_crypto.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,10 @@ void SecureContext::SetECDHCurve(const FunctionCallbackInfo<Value>& args) {
10811081

10821082
node::Utf8Value curve(env->isolate(), args[0]);
10831083

1084+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
10841085
SSL_CTX_set_options(sc->ctx_, SSL_OP_SINGLE_ECDH_USE);
10851086
SSL_CTX_set_ecdh_auto(sc->ctx_, 1);
1087+
#endif
10861088

10871089
if (strcmp(*curve, "auto") == 0)
10881090
return;

0 commit comments

Comments
 (0)