Skip to content

Commit 91180d8

Browse files
Cleanup useless SSL_OP_SINGLE_ECDH_USE with legacy OpenSSL
1 parent 589d5ab commit 91180d8

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/impl/dtlstransport.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,6 @@ DtlsTransport::DtlsTransport(shared_ptr<IceTransport> lower, certificate_ptr cer
766766
auto ecdh = unique_ptr<EC_KEY, decltype(&EC_KEY_free)>(
767767
EC_KEY_new_by_curve_name(NID_X9_62_prime256v1), EC_KEY_free);
768768
SSL_CTX_set_tmp_ecdh(mCtx, ecdh.get());
769-
SSL_CTX_set_options(mCtx, SSL_OP_SINGLE_ECDH_USE);
770769
#endif
771770

772771
auto [x509, pkey] = mCertificate->credentials();

src/impl/tlstransport.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,6 @@ TlsTransport::TlsTransport(variant<shared_ptr<TcpTransport>, shared_ptr<HttpProx
589589
auto ecdh = unique_ptr<EC_KEY, decltype(&EC_KEY_free)>(
590590
EC_KEY_new_by_curve_name(NID_X9_62_prime256v1), EC_KEY_free);
591591
SSL_CTX_set_tmp_ecdh(mCtx, ecdh.get());
592-
SSL_CTX_set_options(mCtx, SSL_OP_SINGLE_ECDH_USE);
593592
#endif
594593

595594
if(mIsClient) {

0 commit comments

Comments
 (0)