mirror of
https://github.com/monero-project/monero.git
synced 2025-07-28 05:55:24 -04:00
epee: implement handshake timeout for SSL connections
This commit is contained in:
parent
d0d76f771a
commit
4371791977
3 changed files with 30 additions and 5 deletions
|
@ -128,7 +128,11 @@ namespace net_utils
|
|||
|
||||
\return True if the SSL handshake completes with peer verification
|
||||
settings. */
|
||||
bool handshake(boost::asio::ssl::stream<boost::asio::ip::tcp::socket> &socket, boost::asio::ssl::stream_base::handshake_type type, const std::string& host = {}) const;
|
||||
bool handshake(
|
||||
boost::asio::ssl::stream<boost::asio::ip::tcp::socket> &socket,
|
||||
boost::asio::ssl::stream_base::handshake_type type,
|
||||
const std::string& host = {},
|
||||
std::chrono::milliseconds timeout = std::chrono::seconds(15)) const;
|
||||
};
|
||||
|
||||
// https://security.stackexchange.com/questions/34780/checking-client-hello-for-https-classification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue