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 <info@bnoordhuis.nl>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
tniessen authored and danielleadams committed Apr 11, 2023
1 parent 6a0c1d0 commit a4a433f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/crypto/crypto_context.cc
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 a4a433f

Please sign in to comment.