Skip to content

Commit 6f15eb9

Browse files
committed
Prevent TLSv1
1 parent 0031d3a commit 6f15eb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/internal/sio_client_impl.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,11 @@ namespace sio
615615
typedef websocketpp::lib::shared_ptr<boost::asio::ssl::context> context_ptr;
616616
static context_ptr on_tls_init(connection_hdl conn)
617617
{
618-
context_ptr ctx = context_ptr(new boost::asio::ssl::context(boost::asio::ssl::context::tlsv1));
618+
context_ptr ctx = context_ptr(new boost::asio::ssl::context(boost::asio::ssl::context::tlsv12));
619619
boost::system::error_code ec;
620620
ctx->set_options(boost::asio::ssl::context::default_workarounds |
621621
boost::asio::ssl::context::no_sslv2 |
622+
boost::asio::ssl::context::no_tlsv1 |
622623
boost::asio::ssl::context::single_dh_use,ec);
623624
if(ec)
624625
{

0 commit comments

Comments
 (0)