|
Botan 3.13.0
Crypto and TLS for C&
|
#include <x509_ext.h>
Public Member Functions | |
| std::unique_ptr< Certificate_Extension > | copy () const override |
| const NameConstraints & | get_name_constraints () const |
| Name_Constraints ()=default | |
| BOTAN_FUTURE_EXPLICIT | Name_Constraints (const NameConstraints &nc) |
| OID | oid_of () const override |
| void | validate (const X509_Certificate &subject, const std::optional< X509_Certificate > &issuer, const std::vector< X509_Certificate > &cert_path, std::vector< std::set< Certificate_Status_Code > > &cert_status, size_t pos) const override |
Static Public Member Functions | |
| static OID | static_oid () |
Name Constraints
Definition at line 293 of file x509_ext.h.
|
default |
|
inline |
Definition at line 301 of file x509_ext.h.
References BOTAN_FUTURE_EXPLICIT.
|
inlineoverridevirtual |
Make a copy of this extension
Implements Botan::Certificate_Extension.
Definition at line 295 of file x509_ext.h.
|
inline |
Definition at line 309 of file x509_ext.h.
|
inlineoverridevirtual |
Return object identifier for this extension
Implements Botan::Certificate_Extension.
Definition at line 313 of file x509_ext.h.
References static_oid().
|
inlinestatic |
Definition at line 311 of file x509_ext.h.
Referenced by oid_of().
|
overridevirtual |
Callback visited during path validation.
An extension can implement this callback to inspect the path during path validation.
If an error occurs during validation of this extension, an appropriate status code shall be added to cert_status.
| subject | Subject certificate that contains this extension |
| issuer | Issuer certificate. nullopt for certificates with no available issuer (e.g. non self-signed trust anchors). |
| cert_path | Certificate path which is currently validated |
| cert_status | Certificate validation status codes for subject certificate |
| pos | Position of subject certificate in cert_path |
Reimplemented from Botan::Certificate_Extension.
Definition at line 827 of file x509_ext.cpp.
References Botan::X509_Certificate::is_CA_cert(), Botan::X509_Certificate::is_critical(), and Botan::NAME_CONSTRAINT_ERROR.