OpenVPN 3 Core Library
|
#include <sslctx.hpp>
Public Types | |
typedef RCPtr< Config > | Ptr |
![]() | |
enum | LoadFlags { LF_PARSE_MODE = (1 << 0) , LF_ALLOW_CLIENT_CERT_NOT_REQUIRED = (1 << 1) , LF_RELAY_MODE = (1 << 2) } |
typedef RCPtr< SSLConfigAPI > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
Public Member Functions | |
Config () | |
void | load_identity (const std::string &subject_match) |
SSLFactoryAPI::Ptr | new_factory () override |
void | set_mode (const Mode &mode_arg) override |
const Mode & | get_mode () const override |
void | set_frame (const Frame::Ptr &frame_arg) override |
void | load (const OptionList &opt, const unsigned int lflags) override |
void | set_external_pki_callback (ExternalPKIBase *external_pki_arg, const std::string &alias) override |
void | set_private_key_password (const std::string &pwd) override |
void | load_ca (const std::string &ca_txt, bool strict) override |
void | load_crl (const std::string &crl_txt) override |
void | load_cert (const std::string &cert_txt) override |
void | load_cert (const std::string &cert_txt, const std::string &extra_certs_txt) override |
void | load_private_key (const std::string &key_txt) override |
void | load_dh (const std::string &dh_txt) override |
void | set_debug_level (const int debug_level) override |
void | set_flags (const unsigned int flags_arg) override |
void | set_ns_cert_type (const NSCert::Type ns_cert_type_arg) override |
void | set_remote_cert_tls (const KUParse::TLSWebType wt) override |
void | set_tls_remote (const std::string &tls_remote_arg) override |
void | set_tls_version_min (const TLSVersion::Type tvm) override |
void | set_local_cert_enabled (const bool v) override |
void | set_enable_renegotiation (const bool v) override |
void | set_rng (const StrongRandomAPI::Ptr &rng_arg) override |
![]() | |
std::string | private_key_type_string () const |
virtual void | set_session_ticket_handler (TLSSessionTicketBase *session_ticket_handler)=0 |
virtual void | set_client_session_tickets (const bool v)=0 |
virtual void | enable_legacy_algorithms (const bool v)=0 |
virtual void | set_sni_handler (SNI::HandlerBase *sni_handler)=0 |
virtual void | set_sni_name (const std::string &sni_name_arg)=0 |
virtual void | set_cn_reject_handler (CommonNameReject *cn_reject_handler_arg)=0 |
virtual std::string | extract_ca () const =0 |
virtual std::string | extract_crl () const =0 |
virtual std::string | extract_cert () const =0 |
virtual std::vector< std::string > | extract_extra_certs () const =0 |
virtual std::string | extract_private_key () const =0 |
virtual std::string | extract_dh () const =0 |
virtual PKType::Type | private_key_type () const =0 |
virtual size_t | private_key_length () const =0 |
virtual void | set_tls_version_max (const TLSVersion::Type tvm)=0 |
virtual void | set_tls_version_min_override (const std::string &override)=0 |
virtual void | set_tls_cert_profile (const TLSCertProfile::Type type)=0 |
virtual void | set_tls_cert_profile_override (const std::string &override)=0 |
virtual void | set_x509_track (X509Track::ConfigSet x509_track_config_arg)=0 |
virtual std::string | validate_cert (const std::string &cert_txt) const =0 |
virtual std::string | validate_cert_list (const std::string &certs_txt) const =0 |
virtual std::string | validate_crl (const std::string &crl_txt) const =0 |
virtual std::string | validate_private_key (const std::string &key_txt) const =0 |
virtual std::string | validate_dh (const std::string &dh_txt) const =0 |
![]() | |
RC () noexcept=default | |
RC (const RC &)=delete | |
virtual | ~RC ()=default |
RC & | operator= (const RC &)=delete |
olong | use_count () const noexcept |
Delegates call to RCImpl and returns the result. | |
Private Member Functions | |
void | not_implemented (const char *funcname) |
Private Attributes | |
Mode | mode |
CF::Array | identity |
Frame::Ptr | frame |
Friends | |
class | AppleSSLContext |
Additional Inherited Members | |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
Definition at line 67 of file sslctx.hpp.
Definition at line 72 of file sslctx.hpp.
|
inline |
Definition at line 74 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 95 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 105 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 128 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 138 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 143 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 133 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 153 of file sslctx.hpp.
|
inline |
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 148 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 85 of file sslctx.hpp.
|
inlineprivate |
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 158 of file sslctx.hpp.
|
inlineoverride |
Definition at line 193 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 118 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 163 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 100 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 188 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 90 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 168 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 123 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 173 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 198 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 178 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 183 of file sslctx.hpp.
|
friend |
Definition at line 69 of file sslctx.hpp.
|
private |
Definition at line 211 of file sslctx.hpp.
|
private |
Definition at line 210 of file sslctx.hpp.
|
private |
Definition at line 209 of file sslctx.hpp.