Botan 2.19.5
Crypto and TLS for C&
|
Name Constraints. More...
#include <pkix_types.h>
Public Member Functions | |
const std::vector< GeneralSubtree > & | excluded () const |
bool | is_excluded (const X509_Certificate &cert, bool reject_unknown) const |
bool | is_permitted (const X509_Certificate &cert, bool reject_unknown) const |
NameConstraints () | |
NameConstraints (std::vector< GeneralSubtree > &&permitted_subtrees, std::vector< GeneralSubtree > &&excluded_subtrees) | |
const std::vector< GeneralSubtree > & | permitted () const |
Name Constraints.
Wraps the Name Constraints associated with a certificate.
Definition at line 326 of file pkix_types.h.
|
inline |
Creates an empty name NameConstraints.
Definition at line 332 of file pkix_types.h.
Botan::NameConstraints::NameConstraints | ( | std::vector< GeneralSubtree > && | permitted_subtrees, |
std::vector< GeneralSubtree > && | excluded_subtrees | ||
) |
Creates NameConstraints from a list of permitted and excluded subtrees.
permitted_subtrees | names for which the certificate is permitted |
excluded_subtrees | names for which the certificate is not permitted |
Definition at line 291 of file name_constraint.cpp.
|
inline |
Definition at line 350 of file pkix_types.h.
Referenced by is_excluded(), Botan::X509_Certificate::to_string(), and Botan::Cert_Extension::Name_Constraints::validate().
bool Botan::NameConstraints::is_excluded | ( | const X509_Certificate & | cert, |
bool | reject_unknown | ||
) | const |
Return true if any of the names in the certificate are excluded
Definition at line 444 of file name_constraint.cpp.
References excluded(), name, Botan::X509_Certificate::subject_alt_name(), Botan::X509_Certificate::subject_dn(), and Botan::X509_Certificate::subject_info().
Referenced by Botan::Cert_Extension::Name_Constraints::validate().
bool Botan::NameConstraints::is_permitted | ( | const X509_Certificate & | cert, |
bool | reject_unknown | ||
) | const |
Return true if all of the names in the certificate are permitted
Definition at line 323 of file name_constraint.cpp.
References name, permitted(), Botan::X509_Certificate::subject_alt_name(), Botan::X509_Certificate::subject_dn(), and Botan::X509_Certificate::subject_info().
Referenced by Botan::Cert_Extension::Name_Constraints::validate().
|
inline |
Definition at line 345 of file pkix_types.h.
Referenced by is_permitted(), Botan::X509_Certificate::to_string(), and Botan::Cert_Extension::Name_Constraints::validate().