|
Botan 3.13.0
Crypto and TLS for C&
|
#include <x509_ext.h>
Public Member Functions | |
| std::vector< uint8_t > | BER_encode () const |
| void | decode_from (BER_Decoder &from) override |
| DistributionPointName ()=default | |
| DistributionPointName (AlternativeName full_name) | |
| void | encode_into (DER_Encoder &to) const override |
| const std::optional< AlternativeName > & | full_name () const |
DistributionPointName used by CRLDistributionPoints and IssuingDistributionPoint (RFC 5280 4.2.1.13 / 5.2.5).
DistributionPointName ::= CHOICE {
fullName [0] GeneralNames,
nameRelativeToCRLIssuer [1] RelativeDistinguishedName }
Currently only the fullName CHOICE arm is supported; nameRelativeToCRLIssuer is rejected at decode time.
Definition at line 570 of file x509_ext.h.
|
default |
|
inlineexplicit |
Definition at line 574 of file x509_ext.h.
References full_name().
|
inherited |
Return the encoding of this object. This is a convenience method when just one object needs to be serialized. Use DER_Encoder for complicated encodings.
Definition at line 21 of file asn1_obj.cpp.
References encode_into().
Referenced by decode_from(), Botan::PKCS12::export_to(), Botan::Certificate_Store_In_SQL::find_all_certs(), Botan::Certificate_Store_In_SQL::find_cert(), Botan::X509_Certificate::fingerprint(), Botan::Certificate_Store_In_SQL::insert_cert(), Botan::X509_Object::PEM_encode(), and Botan::PSS_Params::PSS_Params().
|
overridevirtual |
Decode whatever this object is from from
| from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 1355 of file x509_ext.cpp.
References Botan::Constructed, Botan::ContextSpecific, Botan::BER_Decoder::decode_implicit(), full_name(), Botan::BER_Object::is_a(), Botan::BER_Decoder::peek_next_object(), and Botan::Sequence.
|
overridevirtual |
Encode whatever this object is into to
| to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 1345 of file x509_ext.cpp.
|
inline |
The fullName GeneralNames
In the current implementation this will always be set, it returns an optional to help any future addition of nameRelativeToCRLIssuer, in which case full_name would return nullopt and another getter would return the relative name.
Definition at line 587 of file x509_ext.h.
Referenced by decode_from(), and DistributionPointName().