Skip to content

Commit

Permalink
src: remove use of SSL_OP_SINGLE_DH_USE
Browse files Browse the repository at this point in the history
This option does not have any effect in any supported OpenSSL version.

Refs: nodejs#46954
  • Loading branch information
tniessen committed Mar 4, 2023
1 parent 48f99e5 commit 1332e1e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/crypto/crypto_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,6 @@ void SecureContext::SetDHParam(const FunctionCallbackInfo<Value>& args) {
env->isolate(), "DH parameter is less than 2048 bits"));
}

SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_SINGLE_DH_USE);

if (!SSL_CTX_set_tmp_dh(sc->ctx_.get(), dh.get())) {
return THROW_ERR_CRYPTO_OPERATION_FAILED(
env, "Error setting temp DH parameter");
Expand Down

0 comments on commit 1332e1e

Please sign in to comment.