mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Use boost::asio::ssl::context::sslv23 for backwards compatibility
All the insecure protocols that this enables are then disabled, so they cannot be actually used. The end-result is the same.
This commit is contained in:
parent
3031debfd6
commit
6079042cce
1 changed files with 3 additions and 1 deletions
|
@ -289,7 +289,9 @@ 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_options_t::create_context() const
|
||||||
{
|
{
|
||||||
boost::asio::ssl::context ssl_context{boost::asio::ssl::context::tls};
|
// note: this enables a lot of old and insecure protocols, which we
|
||||||
|
// promptly disable below - if the result is actually used
|
||||||
|
boost::asio::ssl::context ssl_context{boost::asio::ssl::context::sslv23};
|
||||||
if (!bool(*this))
|
if (!bool(*this))
|
||||||
return ssl_context;
|
return ssl_context;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue