|
Monero
|
#include <net_ssl.h>

Public Member Functions | |
| ssl_options_t (ssl_support_t support) | |
| Verification is set to system ca unless SSL is disabled. | |
| ssl_options_t (std::vector< std::vector< std::uint8_t > > fingerprints, std::string ca_path) | |
| Provide user fingerprints and/or ca path. Enables SSL and user_certificate verification. | |
| ssl_options_t (const ssl_options_t &)=default | |
| ssl_options_t (ssl_options_t &&)=default | |
| ssl_options_t & | operator= (const ssl_options_t &)=default |
| ssl_options_t & | operator= (ssl_options_t &&)=default |
| operator bool () const noexcept | |
| bool | has_strong_verification (boost::string_ref host) const noexcept |
| bool | has_fingerprint (boost::asio::ssl::verify_context &ctx) const |
| Search against internal fingerprints. Always false if behavior() != user_certificate_check. | |
| 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 |
| configure ssl_stream handshake verification | |
| boost::asio::ssl::context | create_context () const |
| bool | handshake (boost::asio::io_context &io_context, boost::asio::ssl::stream< boost::asio::ip::tcp::socket > &socket, boost::asio::ssl::stream_base::handshake_type type, boost::asio::const_buffer buffer={}, const std::string &host={}, std::chrono::milliseconds timeout=std::chrono::seconds(15)) const |
Public Attributes | |
| std::string | ca_path |
| ssl_authentication_t | auth |
| ssl_support_t | support |
| ssl_verification_t | verification |
Private Attributes | |
| std::vector< std::vector< std::uint8_t > > | fingerprints_ |
|
inline |
Verification is set to system ca unless SSL is disabled.
| epee::net_utils::ssl_options_t::ssl_options_t | ( | std::vector< std::vector< std::uint8_t > > | fingerprints, |
| std::string | ca_path ) |
Provide user fingerprints and/or ca path. Enables SSL and user_certificate verification.
|
default |
|
default |
| void epee::net_utils::ssl_options_t::configure | ( | boost::asio::ssl::stream< boost::asio::ip::tcp::socket > & | socket, |
| boost::asio::ssl::stream_base::handshake_type | type, | ||
| const std::string & | host = {} ) const |
configure ssl_stream handshake verification
| boost::asio::ssl::context epee::net_utils::ssl_options_t::create_context | ( | ) | const |
| bool epee::net_utils::ssl_options_t::handshake | ( | boost::asio::io_context & | io_context, |
| boost::asio::ssl::stream< boost::asio::ip::tcp::socket > & | socket, | ||
| boost::asio::ssl::stream_base::handshake_type | type, | ||
| boost::asio::const_buffer | buffer = {}, | ||
| const std::string & | host = {}, | ||
| std::chrono::milliseconds | timeout = std::chrono::seconds(15) ) const |
| io_context | associated with socket. |
| socket | Used in SSL handshake and verification |
| type | Client or server |
| host | This parameter is only used when type == client && !host.empty(). The value is sent to the server for situations where multiple hostnames are being handled by a server. If verification == system_ca the client also does a rfc2818 check to ensure that the server certificate is to the provided hostname. |
| bool epee::net_utils::ssl_options_t::has_fingerprint | ( | boost::asio::ssl::verify_context & | ctx | ) | const |
Search against internal fingerprints. Always false if behavior() != user_certificate_check.
|
noexcept |
|
inlineexplicitnoexcept |
|
default |
|
default |
| ssl_authentication_t epee::net_utils::ssl_options_t::auth |
| std::string epee::net_utils::ssl_options_t::ca_path |
|
private |
| ssl_support_t epee::net_utils::ssl_options_t::support |
| ssl_verification_t epee::net_utils::ssl_options_t::verification |