Botan 3.9.0
Crypto and TLS for C&
|
#include <x509_ext.h>
Public Types | |
typedef std::variant< IPAddressChoice< Version::IPv4 >, IPAddressChoice< Version::IPv6 > > | AddrChoice |
Public Member Functions | |
const AddrChoice & | addr_choice () const |
uint16_t | afi () const |
std::vector< uint8_t > | BER_encode () const |
void | decode_from (BER_Decoder &from) override |
void | encode_into (DER_Encoder &to) const override |
IPAddressFamily ()=default | |
IPAddressFamily (const AddrChoice &choice, std::optional< uint8_t > safi=std::nullopt) | |
std::optional< uint8_t > | safi () const |
Definition at line 686 of file x509_ext.h.
typedef std::variant<IPAddressChoice<Version::IPv4>, IPAddressChoice<Version::IPv6> > Botan::Cert_Extension::IPAddressBlocks::IPAddressFamily::AddrChoice |
Definition at line 688 of file x509_ext.h.
|
default |
|
inlineexplicit |
Definition at line 695 of file x509_ext.h.
References safi().
|
inline |
Definition at line 708 of file x509_ext.h.
Referenced by decode_from().
|
inline |
Definition at line 704 of file x509_ext.h.
|
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 19 of file asn1_obj.cpp.
References encode_into().
Referenced by decode_from(), 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(), Botan::PSS_Params::PSS_Params(), and Botan::Certificate_Store_In_SQL::revoke_cert().
|
overridevirtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 907 of file x509_ext.cpp.
References addr_choice(), Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), Botan::fmt(), Botan::OctetString, Botan::BER_Decoder::peek_next_object(), Botan::Sequence, Botan::BER_Decoder::start_sequence(), and Botan::BER_Object::type_tag().
|
overridevirtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 888 of file x509_ext.cpp.
References Botan::DER_Encoder::add_object(), Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), Botan::get_byte(), Botan::OctetString, Botan::DER_Encoder::start_sequence(), and Botan::Universal.
|
inline |