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 () | |
SSLFactoryAPI::Ptr | new_factory () override |
void | set_mode (const Mode &mode_arg) override |
const Mode & | get_mode () const override |
void | set_external_pki_callback (ExternalPKIBase *external_pki_arg, const std::string &alias) override |
void | set_session_ticket_handler (TLSSessionTicketBase *session_ticket_handler_arg) override |
void | set_client_session_tickets (const bool v) override |
void | enable_legacy_algorithms (const bool v) override |
void | set_sni_handler (SNI::HandlerBase *sni_handler) override |
void | set_sni_name (const std::string &sni_name_arg) override |
void | set_cn_reject_handler (CommonNameReject *cn_reject_handler_arg) 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 |
std::string | extract_ca () const override |
std::string | extract_crl () const override |
std::string | extract_cert () const override |
std::vector< std::string > | extract_extra_certs () const override |
std::string | extract_private_key () const override |
std::string | extract_dh () const override |
PKType::Type | private_key_type () const override |
size_t | private_key_length () const override |
void | set_frame (const Frame::Ptr &frame_arg) 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_tls_version_max (const TLSVersion::Type tvm) override |
void | set_tls_version_min_override (const std::string &override) override |
void | set_tls_cert_profile (const TLSCertProfile::Type type) override |
virtual void | set_tls_cipher_list (const std::string &override) |
virtual void | set_tls_ciphersuite_list (const std::string &override) |
virtual void | set_tls_groups (const std::string &groups) |
void | set_tls_cert_profile_override (const std::string &override) override |
void | set_local_cert_enabled (const bool v) override |
void | set_x509_track (X509Track::ConfigSet x509_track_config_arg) override |
void | set_rng (const StrongRandomAPI::Ptr &rng_arg) override |
std::string | validate_cert (const std::string &cert_txt) const override |
std::string | validate_cert_list (const std::string &certs_txt) const override |
std::string | validate_private_key (const std::string &key_txt) const override |
std::string | validate_dh (const std::string &dh_txt) const override |
std::string | validate_crl (const std::string &crl_txt) const override |
void | load (const OptionList &opt, const unsigned int lflags) override |
bool | is_server () const |
![]() | |
std::string | private_key_type_string () const |
![]() | |
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. | |
Protected Attributes | |
MbedTLSPKI::X509Cert::Ptr | crt_chain |
MbedTLSPKI::X509Cert::Ptr | ca_chain |
Private Member Functions | |
MbedTLSRandom * | get_mbed_random_class () const |
const mbedtls_x509_crt_profile * | select_crt_profile () const |
Private Attributes | |
Mode | mode |
MbedTLSPKI::X509CRL::Ptr | crl_chain |
MbedTLSPKI::PKContext::Ptr | priv_key |
std::string | priv_key_pwd |
MbedTLSPKI::DH::Ptr | dh |
ExternalPKIBase * | external_pki |
std::string | external_pki_alias |
Frame::Ptr | frame |
int | ssl_debug_level |
unsigned int | flags |
NSCert::Type | ns_cert_type |
std::vector< unsigned int > | ku |
std::string | eku |
std::string | tls_remote |
VerifyX509Name | verify_x509_name |
TLSVersion::Type | tls_version_min |
TLSCertProfile::Type | tls_cert_profile |
std::string | tls_cipher_list |
std::string | tls_groups |
X509Track::ConfigSet | x509_track_config |
bool | local_cert_enabled |
StrongRandomAPI::Ptr | rng |
Friends | |
class | MbedTLSContext |
Additional Inherited Members | |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
Definition at line 194 of file sslctx.hpp.
Definition at line 199 of file sslctx.hpp.
|
inline |
Definition at line 201 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 246 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 319 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 333 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 326 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 354 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 340 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 347 of file sslctx.hpp.
|
inlineprivate |
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 222 of file sslctx.hpp.
|
inline |
Definition at line 603 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 492 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 274 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 288 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 295 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 281 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 312 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 304 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 212 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 368 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 361 of file sslctx.hpp.
|
inlineprivate |
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 240 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 264 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 380 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 228 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 385 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 375 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 446 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 217 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 390 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 269 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 395 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 456 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 234 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 252 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 258 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 419 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 441 of file sslctx.hpp.
|
inlinevirtual |
Definition at line 424 of file sslctx.hpp.
|
inlinevirtual |
Definition at line 430 of file sslctx.hpp.
|
inlinevirtual |
Definition at line 435 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 400 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 410 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 405 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 414 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 451 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 461 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 467 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 486 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 480 of file sslctx.hpp.
|
inlineoverridevirtual |
Implements openvpn::SSLConfigAPI.
Definition at line 473 of file sslctx.hpp.
|
friend |
Definition at line 196 of file sslctx.hpp.
|
protected |
Definition at line 647 of file sslctx.hpp.
|
private |
Definition at line 650 of file sslctx.hpp.
|
protected |
Definition at line 646 of file sslctx.hpp.
|
private |
Definition at line 653 of file sslctx.hpp.
|
private |
Definition at line 661 of file sslctx.hpp.
|
private |
Definition at line 654 of file sslctx.hpp.
|
private |
Definition at line 655 of file sslctx.hpp.
|
private |
Definition at line 658 of file sslctx.hpp.
|
private |
Definition at line 656 of file sslctx.hpp.
|
private |
Definition at line 660 of file sslctx.hpp.
|
private |
Definition at line 669 of file sslctx.hpp.
|
private |
Definition at line 643 of file sslctx.hpp.
|
private |
Definition at line 659 of file sslctx.hpp.
|
private |
Definition at line 651 of file sslctx.hpp.
|
private |
Definition at line 652 of file sslctx.hpp.
|
private |
Definition at line 670 of file sslctx.hpp.
|
private |
Definition at line 657 of file sslctx.hpp.
|
private |
Definition at line 665 of file sslctx.hpp.
|
private |
Definition at line 666 of file sslctx.hpp.
|
private |
Definition at line 667 of file sslctx.hpp.
|
private |
Definition at line 662 of file sslctx.hpp.
|
private |
Definition at line 664 of file sslctx.hpp.
|
private |
Definition at line 663 of file sslctx.hpp.
|
private |
Definition at line 668 of file sslctx.hpp.