Skip to content

Commit

Permalink
crypto: remove deprecated ECDH calls w/ OpenSSL 1.1
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
davidben authored and evanlucas committed Nov 13, 2017
1 parent 08ac214 commit 07102ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1085,8 +1085,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;
Expand Down

0 comments on commit 07102ac

Please sign in to comment.