Skip to content

Commit f741040

Browse files
davidbenrvagg
authored andcommitted
crypto: remove deprecated ECDH calls w/ OpenSSL 1.1
These are both no-ops in OpenSSL 1.1.0. PR-URL: nodejs#16130 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent b54a4d8 commit f741040

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
@@ -1078,8 +1078,10 @@ void SecureContext::SetECDHCurve(const FunctionCallbackInfo<Value>& args) {
10781078

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

1081+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
10811082
SSL_CTX_set_options(sc->ctx_, SSL_OP_SINGLE_ECDH_USE);
10821083
SSL_CTX_set_ecdh_auto(sc->ctx_, 1);
1084+
#endif
10831085

10841086
if (strcmp(*curve, "auto") == 0)
10851087
return;

0 commit comments

Comments
 (0)