Skip to content

Commit b051ac7

Browse files
tniessentargos
authored andcommitted
src: remove use of SSL_OP_SINGLE_DH_USE
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>
1 parent 17d3eb0 commit b051ac7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/crypto/crypto_context.cc

-2
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,6 @@ void SecureContext::SetDHParam(const FunctionCallbackInfo<Value>& args) {
878878
env->isolate(), "DH parameter is less than 2048 bits"));
879879
}
880880

881-
SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_SINGLE_DH_USE);
882-
883881
if (!SSL_CTX_set_tmp_dh(sc->ctx_.get(), dh.get())) {
884882
return THROW_ERR_CRYPTO_OPERATION_FAILED(
885883
env, "Error setting temp DH parameter");

0 commit comments

Comments
 (0)