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: #46954
PR-URL: #46955
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
tniessen committed Mar 9, 2023
1 parent c733cc0 commit ef454c8
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 ef454c8

Please sign in to comment.