Skip to content
Permalink
Browse files

ssl: allow multiple version of TLS

boost::asio::ssl::context is created using specifically TLSv1.2, which
block the ability to use superior version of TLS.

Filtering is also made specially later in the code to remove unsafe
version for TLS such SSLv2, SSLv3 etc..

This change is removing double filtering to allow TLSv1.2 and above to
be used.
  • Loading branch information
bjacquin committed Dec 1, 2019
1 parent 411f1b0 commit 9e1145b90ea4e4656533850df5bf8038ca0658e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 contrib/epee/src/net_ssl.cpp
@@ -285,7 +285,7 @@ ssl_options_t::ssl_options_t(std::vector<std::vector<std::uint8_t>> fingerprints

boost::asio::ssl::context ssl_options_t::create_context() const
{
boost::asio::ssl::context ssl_context{boost::asio::ssl::context::tlsv12};
boost::asio::ssl::context ssl_context{boost::asio::ssl::context::tls};
if (!bool(*this))
return ssl_context;

0 comments on commit 9e1145b

Please sign in to comment.
You can’t perform that action at this time.