|
Botan 3.13.0
Crypto and TLS for C&
|
#include <x509_ext.h>
Classes | |
| class | ASIdentifierChoice |
| class | ASIdentifiers |
| class | ASIdOrRange |
Public Types | |
| typedef uint32_t | asnum_t |
Public Member Functions | |
| void | add_asnum (asnum_t asnum) |
| Add a single asnum to this extension. | |
| void | add_asnum (asnum_t min, asnum_t max) |
| Add an asnum range to this extension. | |
| void | add_rdi (asnum_t min, asnum_t max) |
| Add an rdi range to this extension. | |
| void | add_rdi (asnum_t rdi) |
| Add a single rdi to this extension. | |
| const ASIdentifiers & | as_identifiers () const |
| ASBlocks ()=default | |
| ASBlocks (const ASIdentifiers &as_idents) | |
| std::unique_ptr< Certificate_Extension > | copy () const override |
| void | inherit_asnum () |
| Mark the asnum entry as 'inherit'. | |
| void | inherit_rdi () |
| Mark the rdi entry as 'inherit'. | |
| OID | oid_of () const override |
| void | restrict_asnum () |
| Make the extension contain no allowed asnum's. | |
| void | restrict_rdi () |
| Make the extension contain no allowed rdi's. | |
| 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 () |
| typedef uint32_t Botan::Cert_Extension::ASBlocks::asnum_t |
Definition at line 1141 of file x509_ext.h.
|
default |
Referenced by validate().
|
inlineexplicit |
Definition at line 1209 of file x509_ext.h.
|
inline |
Add a single asnum to this extension.
Definition at line 1224 of file x509_ext.h.
References add_asnum().
Referenced by add_asnum().
Add an asnum range to this extension.
Definition at line 1227 of file x509_ext.h.
Add an rdi range to this extension.
Definition at line 1244 of file x509_ext.h.
|
inline |
Add a single rdi to this extension.
Definition at line 1241 of file x509_ext.h.
References add_rdi().
Referenced by add_rdi().
|
inline |
Definition at line 1257 of file x509_ext.h.
Referenced by botan_x509_ext_as_blocks_get_entry_at(), botan_x509_ext_as_blocks_get_info(), and validate().
|
inlineoverridevirtual |
Make a copy of this extension
Implements Botan::Certificate_Extension.
Definition at line 1211 of file x509_ext.h.
|
inline |
|
inline |
|
inlineoverridevirtual |
Return object identifier for this extension
Implements Botan::Certificate_Extension.
Definition at line 1215 of file x509_ext.h.
References static_oid().
|
inline |
Make the extension contain no allowed asnum's.
Definition at line 1232 of file x509_ext.h.
|
inline |
Make the extension contain no allowed rdi's.
Definition at line 1249 of file x509_ext.h.
|
inlinestatic |
Definition at line 1213 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 2444 of file x509_ext.cpp.
References Botan::AS_BLOCKS_ERROR, as_identifiers(), ASBlocks(), Botan::Cert_Extension::ASBlocks::ASIdentifiers::asnum(), and Botan::Cert_Extension::ASBlocks::ASIdentifiers::rdi().