Skip to content

Commit 1332e1e

Browse files
committed
src: remove use of SSL_OP_SINGLE_DH_USE
This option does not have any effect in any supported OpenSSL version. Refs: nodejs#46954
1 parent 48f99e5 commit 1332e1e

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)