mirror of
https://github.com/monero-project/monero.git
synced 2025-06-18 10:59:13 -04:00
ssl: buffered handshake detection
This commit is contained in:
parent
7438617bbf
commit
f7ab8bc6d4
5 changed files with 14 additions and 13 deletions
|
@ -132,10 +132,10 @@ class connection_basic { // not-templated base class for rapid developmet of som
|
|||
ssl_support_t get_ssl_support() const { return m_ssl_support; }
|
||||
void disable_ssl() { m_ssl_support = epee::net_utils::ssl_support_t::e_ssl_support_disabled; }
|
||||
|
||||
bool handshake(boost::asio::ssl::stream_base::handshake_type type)
|
||||
bool handshake(boost::asio::ssl::stream_base::handshake_type type, boost::asio::const_buffer buffer = {})
|
||||
{
|
||||
//m_state != nullptr verified in constructor
|
||||
return m_state->ssl_options().handshake(socket_, type);
|
||||
return m_state->ssl_options().handshake(socket_, type, buffer);
|
||||
}
|
||||
|
||||
template<typename MutableBufferSequence, typename ReadHandler>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue