OpenVPN 3 Core Library
|
#include <verify_x509_name.hpp>
Public Types | |
enum | Mode { VERIFY_X509_NONE = 0 , VERIFY_X509_SUBJECT_DN = 1 , VERIFY_X509_SUBJECT_RDN = 2 , VERIFY_X509_SUBJECT_RDN_PREFIX = 3 } |
Public Member Functions | |
VerifyX509Name ()=default | |
VerifyX509Name (const OptionList &opt, const std::string &relay_prefix="") | |
~VerifyX509Name ()=default | |
void | init (const OptionList &opt, const std::string &relay_prefix) |
std::string | get_mode_str () const |
Mode | get_mode () const |
bool | verify (const std::string &value) const |
Static Private Member Functions | |
static Mode | parse_x509_verify_mode (const std::string &type) |
Private Attributes | |
Mode | mode = VERIFY_X509_NONE |
std::string | verify_value |
Parses the –verify-x509-name configuration option and provides the logic to validate an X.509 certificate subject against such an option.
Definition at line 24 of file verify_x509_name.hpp.
Enumerator | |
---|---|
VERIFY_X509_NONE | |
VERIFY_X509_SUBJECT_DN | |
VERIFY_X509_SUBJECT_RDN | |
VERIFY_X509_SUBJECT_RDN_PREFIX |
Definition at line 27 of file verify_x509_name.hpp.
|
default |
|
inline |
Definition at line 37 of file verify_x509_name.hpp.
|
default |
|
inline |
|
inline |
Definition at line 57 of file verify_x509_name.hpp.
|
inline |
|
inlinestaticprivate |
|
inline |
|
private |
Definition at line 107 of file verify_x509_name.hpp.
|
private |
Definition at line 108 of file verify_x509_name.hpp.