aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/net_ssl.h
diff options
context:
space:
mode:
authoranon <anon [at] nowhere>2021-06-28 19:13:02 +0000
committerj-berman <justinberman@protonmail.com>2022-07-05 22:33:34 -0700
commit3be1dbd0963a76a05fd7f72f28100726daa1c4e7 (patch)
tree898384944e70933021d68620bfff60e0b55d3499 /contrib/epee/include/net/net_ssl.h
parentconnection: add segfault and deadlocks demo (diff)
downloadmonero-3be1dbd0963a76a05fd7f72f28100726daa1c4e7.tar.xz
connection: fix implementation
Diffstat (limited to '')
-rw-r--r--contrib/epee/include/net/net_ssl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/epee/include/net/net_ssl.h b/contrib/epee/include/net/net_ssl.h
index 108e6771b..c79a3acc1 100644
--- a/contrib/epee/include/net/net_ssl.h
+++ b/contrib/epee/include/net/net_ssl.h
@@ -110,6 +110,11 @@ namespace net_utils
//! Search against internal fingerprints. Always false if `behavior() != user_certificate_check`.
bool has_fingerprint(boost::asio::ssl::verify_context &ctx) const;
+ //! configure ssl_stream handshake verification
+ void configure(
+ boost::asio::ssl::stream<boost::asio::ip::tcp::socket> &socket,
+ boost::asio::ssl::stream_base::handshake_type type,
+ const std::string& host = {}) const;
boost::asio::ssl::context create_context() const;
/*! \note If `this->support == autodetect && this->verification != none`,