39 init(opt, relay_prefix);
46 const Option *o = opt.
get_ptr(relay_prefix +
"verify-x509-name");
62 return "VERIFY_X509_NONE";
64 return "VERIFY_X509_SUBJECT_DN";
66 return "VERIFY_X509_SUBJECT_RDN";
68 return "VERIFY_X509_SUBJECT_RDN_PREFIX";
70 return "VERIFY_X509_NONE";
79 bool verify(
const std::string &value)
const
112 if (type ==
"subject")
116 else if (type ==
"name")
120 else if (type ==
"name-prefix")
124 throw option_error(ERR_INVALID_OPTION_CRYPTO,
"Invalid verify-x509-name type: " + type);
const Option * get_ptr(const std::string &name) const
std::string get_default(const size_t index, const size_t max_len, const std::string &default_value) const
const std::string & get(const size_t index, const size_t max_len) const
void min_args(const size_t n) const
void init(const OptionList &opt, const std::string &relay_prefix)
bool verify(const std::string &value) const
~VerifyX509Name()=default
VerifyX509Name(const OptionList &opt, const std::string &relay_prefix="")
static Mode parse_x509_verify_mode(const std::string &type)
std::string get_mode_str() const
@ VERIFY_X509_SUBJECT_RDN_PREFIX
@ VERIFY_X509_SUBJECT_RDN