|
xrpld
|
#include <HTTPClientSSLContext.h>

Public Member Functions | |
| HTTPClientSSLContext (std::string const &sslVerifyDir, std::string const &sslVerifyFile, bool sslVerify, beast::Journal j, boost::asio::ssl::context_base::method method=boost::asio::ssl::context::sslv23) | |
| boost::asio::ssl::context & | context () |
| bool | sslVerify () const |
| template<class T> requires ( std::is_same_v<T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket>> || std::is_same_v<T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>) | |
| boost::system::error_code | preConnectVerify (T &strm, std::string const &host) |
| invoked before connect/async_connect on an ssl stream to setup name verification. | |
| template<class T> requires ( std::is_same_v<T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket>> || std::is_same_v<T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>) | |
| boost::system::error_code | postConnectVerify (T &strm, std::string const &host) |
| invoked after connect/async_connect but before sending data on an ssl stream - to setup name verification. | |
Static Public Member Functions | |
| static bool | rfc6125Verify (std::string const &domain, bool preverified, boost::asio::ssl::verify_context &ctx, beast::Journal j) |
| callback invoked for name verification - just passes through to the asio host_name_verification (rfc6125) implementation. | |
Private Attributes | |
| boost::asio::ssl::context | sslContext_ |
| beast::Journal const | j_ |
| bool const | verify_ |
Definition at line 22 of file HTTPClientSSLContext.h.
|
explicit |
Definition at line 25 of file HTTPClientSSLContext.h.
| boost::asio::ssl::context & xrpl::HTTPClientSSLContext::context | ( | ) |
Definition at line 63 of file HTTPClientSSLContext.h.
|
nodiscard |
Definition at line 69 of file HTTPClientSSLContext.h.
| boost::system::error_code xrpl::HTTPClientSSLContext::preConnectVerify | ( | T & | strm, |
| std::string const & | host ) |
invoked before connect/async_connect on an ssl stream to setup name verification.
If we intend to verify the SSL connection, we need to set the default domain for server name indication prior to connecting
| strm | asio ssl stream |
| host | hostname to verify |
Definition at line 88 of file HTTPClientSSLContext.h.
| boost::system::error_code xrpl::HTTPClientSSLContext::postConnectVerify | ( | T & | strm, |
| std::string const & | host ) |
invoked after connect/async_connect but before sending data on an ssl stream - to setup name verification.
| strm | asio ssl stream |
| host | hostname to verify |
Definition at line 114 of file HTTPClientSSLContext.h.
|
static |
callback invoked for name verification - just passes through to the asio host_name_verification (rfc6125) implementation.
| domain | hostname expected |
| preverified | passed by implementation |
| ctx | passed by implementation |
| j | journal for logging |
Definition at line 147 of file HTTPClientSSLContext.h.
|
private |
Definition at line 162 of file HTTPClientSSLContext.h.
|
private |
Definition at line 163 of file HTTPClientSSLContext.h.
|
private |
Definition at line 164 of file HTTPClientSSLContext.h.