aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src/net_ssl.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-04-04 13:06:36 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-04-04 13:06:36 -0500
commitd86d1a4d29d578dfc905d9ea8086ca92654fe34a (patch)
treedf111e0bb822c9c4ecf5439ae12022936da91cb6 /contrib/epee/src/net_ssl.cpp
parentMerge pull request #6364 (diff)
parentUse boost::asio::ssl::context::sslv23 for backwards compatibility (diff)
downloadmonero-d86d1a4d29d578dfc905d9ea8086ca92654fe34a.tar.xz
Merge pull request #6370
3031deb Bump downloaded boost version to 1.72 (omartijn) 6079042 Use boost::asio::ssl::context::sslv23 for backwards compatibility (omartijn)
Diffstat (limited to 'contrib/epee/src/net_ssl.cpp')
-rw-r--r--contrib/epee/src/net_ssl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/epee/src/net_ssl.cpp b/contrib/epee/src/net_ssl.cpp
index 946499129..d7bb62049 100644
--- a/contrib/epee/src/net_ssl.cpp
+++ b/contrib/epee/src/net_ssl.cpp
@@ -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_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))
return ssl_context;