Skip to content

Commit 07102ac

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node_crypto.cc

+2
Original file line numberDiff line numberDiff line change
@@ -1085,8 +1085,10 @@ void SecureContext::SetECDHCurve(const FunctionCallbackInfo<Value>& args) {
10851085

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

1088+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
10881089
SSL_CTX_set_options(sc->ctx_, SSL_OP_SINGLE_ECDH_USE);
10891090
SSL_CTX_set_ecdh_auto(sc->ctx_, 1);
1091+
#endif
10901092

10911093
if (strcmp(*curve, "auto") == 0)
10921094
return;

0 commit comments

Comments
 (0)