|
| HTTPClientSSLContext (Config const &config, 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 , class = std::enable_if_t< std::is_same< T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>:: value || std::is_same< T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>:: value>> |
boost::system::error_code | preConnectVerify (T &strm, std::string const &host) |
| invoked before connect/async_connect on an ssl stream to setup name verification. More...
|
|
template<class T , class = std::enable_if_t< std::is_same< T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>:: value || std::is_same< T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>:: value>> |
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. More...
|
|
|
static bool | rfc2818_verify (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 rfc2818 implementation. More...
|
|
Definition at line 34 of file HTTPClientSSLContext.h.
◆ HTTPClientSSLContext()
ripple::HTTPClientSSLContext::HTTPClientSSLContext |
( |
Config const & |
config, |
|
|
beast::Journal |
j, |
|
|
boost::asio::ssl::context_base::method |
method = boost::asio::ssl::context::sslv23 |
|
) |
| |
|
explicit |
◆ context()
boost::asio::ssl::context& ripple::HTTPClientSSLContext::context |
( |
| ) |
|
◆ sslVerify()
bool ripple::HTTPClientSSLContext::sslVerify |
( |
| ) |
const |
◆ preConnectVerify()
template<class T , class = std::enable_if_t< std::is_same< T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>:: value || std::is_same< T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>:: value>>
boost::system::error_code ripple::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
- Parameters
-
strm | asio ssl stream |
host | hostname to verify |
- Returns
- error_code indicating failures, if any
Definition at line 107 of file HTTPClientSSLContext.h.
◆ postConnectVerify()
template<class T , class = std::enable_if_t< std::is_same< T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>:: value || std::is_same< T, boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>:: value>>
boost::system::error_code ripple::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.
- Parameters
-
strm | asio ssl stream |
host | hostname to verify |
Definition at line 142 of file HTTPClientSSLContext.h.
◆ rfc2818_verify()
static bool ripple::HTTPClientSSLContext::rfc2818_verify |
( |
std::string const & |
domain, |
|
|
bool |
preverified, |
|
|
boost::asio::ssl::verify_context & |
ctx, |
|
|
beast::Journal |
j |
|
) |
| |
|
static |
callback invoked for name verification - just passes through to the asio rfc2818 implementation.
- Parameters
-
domain | hostname expected |
preverified | passed by implementation |
ctx | passed by implementation |
j | journal for logging |
Definition at line 175 of file HTTPClientSSLContext.h.
◆ ssl_context_
boost::asio::ssl::context ripple::HTTPClientSSLContext::ssl_context_ |
|
private |
◆ j_
◆ verify_
const bool ripple::HTTPClientSSLContext::verify_ |
|
private |