|
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 std::vector< uint8_t > & | extension_contents () const |
| bool | failed_to_decode () const |
| bool | is_critical_extension () const |
| OID | oid_of () const override |
| Unknown_Extension (const OID &oid, bool critical, bool failed_to_decode=false) | |
| void | validate (const X509_Certificate &, const std::optional< X509_Certificate > &, const std::vector< X509_Certificate > &, std::vector< std::set< Certificate_Status_Code > > &cert_status, size_t pos) const override |
An unknown X.509 extension Will add a failure to the path validation result, if critical
Definition at line 1278 of file x509_ext.h.
|
inline |
Definition at line 1280 of file x509_ext.h.
References failed_to_decode().
|
inlineoverridevirtual |
Make a copy of this extension
Implements Botan::Certificate_Extension.
Definition at line 1283 of file x509_ext.h.
|
inline |
|
inline |
Return true if this extension's OID was recognized but the contents failed to decode.
Definition at line 1308 of file x509_ext.h.
Referenced by Unknown_Extension().
|
inline |
Return if this extension was marked critical
Definition at line 1302 of file x509_ext.h.
|
inlineoverridevirtual |
Return the OID of this unknown extension
Implements Botan::Certificate_Extension.
Definition at line 1290 of file x509_ext.h.
|
inlineoverridevirtual |
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 1310 of file x509_ext.h.
References Botan::EXTENSION_ENCODING_ERROR, and Botan::UNKNOWN_CRITICAL_EXTENSION.