aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src/net_ssl.cpp
diff options
context:
space:
mode:
authoranon <anon [at] nowhere>2020-12-27 01:55:12 +0000
committerselsta <selsta@sent.at>2020-12-28 22:21:17 +0100
commitb8bc4d77b7533ff7b02c4b362ef3891da04137ba (patch)
treead00688c3f489e8bbd9bd7ad83ebe1fa6f7953b9 /contrib/epee/src/net_ssl.cpp
parentMerge pull request #7193 (diff)
downloadmonero-b8bc4d77b7533ff7b02c4b362ef3891da04137ba.tar.xz
ssl: buffered handshake detection
Diffstat (limited to '')
-rw-r--r--contrib/epee/src/net_ssl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/src/net_ssl.cpp b/contrib/epee/src/net_ssl.cpp
index a09e82771..6ed27efa9 100644
--- a/contrib/epee/src/net_ssl.cpp
+++ b/contrib/epee/src/net_ssl.cpp
@@ -473,6 +473,7 @@ bool ssl_options_t::has_fingerprint(boost::asio::ssl::verify_context &ctx) const
bool ssl_options_t::handshake(
boost::asio::ssl::stream<boost::asio::ip::tcp::socket> &socket,
boost::asio::ssl::stream_base::handshake_type type,
+ boost::asio::const_buffer buffer,
const std::string& host,
std::chrono::milliseconds timeout) const
{
@@ -530,7 +531,7 @@ bool ssl_options_t::handshake(
});
boost::system::error_code ec = boost::asio::error::would_block;
- socket.async_handshake(type, boost::lambda::var(ec) = boost::lambda::_1);
+ socket.async_handshake(type, boost::asio::buffer(buffer), boost::lambda::var(ec) = boost::lambda::_1);
if (io_service.stopped())
{
io_service.reset();