Skip to content

Commit 6b9f5fb

Browse files
authored
feat: use TLSv2 when TLS is used (#309)
Backported from master: e8ea707
1 parent 168ce9d commit 6b9f5fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/internal/sio_client_impl.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,9 @@ namespace sio
577577
#if SIO_TLS
578578
client_impl::context_ptr client_impl::on_tls_init(connection_hdl conn)
579579
{
580-
context_ptr ctx = context_ptr(new asio::ssl::context(asio::ssl::context::tlsv1));
580+
context_ptr ctx = context_ptr(new asio::ssl::context(asio::ssl::context::tlsv12));
581581
asio::error_code ec;
582582
ctx->set_options(asio::ssl::context::default_workarounds |
583-
asio::ssl::context::no_sslv2 |
584583
asio::ssl::context::single_dh_use,ec);
585584
if(ec)
586585
{

0 commit comments

Comments
 (0)