Skip to content

Commit

Permalink
feat: use TLSv2 when TLS is used (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
taste1981 authored Jun 11, 2021
1 parent 0581aab commit e8ea707
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/internal/sio_client_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,9 @@ namespace sio
#if SIO_TLS
client_impl::context_ptr client_impl::on_tls_init(connection_hdl conn)
{
context_ptr ctx = context_ptr(new asio::ssl::context(asio::ssl::context::tlsv1));
context_ptr ctx = context_ptr(new asio::ssl::context(asio::ssl::context::tlsv12));
asio::error_code ec;
ctx->set_options(asio::ssl::context::default_workarounds |
asio::ssl::context::no_sslv2 |
asio::ssl::context::single_dh_use,ec);
if(ec)
{
Expand Down

0 comments on commit e8ea707

Please sign in to comment.