Botan 3.9.0
Crypto and TLS for C&
|
#include <asn1_obj.h>
Public Member Functions | |
void | assert_is_a (ASN1_Type type_tag, ASN1_Class class_tag, std::string_view descr="object") const |
BER_Object ()=default | |
BER_Object (BER_Object &&other)=default | |
BER_Object (const BER_Object &other)=default | |
const uint8_t * | bits () const |
ASN1_Class | class_tag () const |
std::span< const uint8_t > | data () const |
ASN1_Class | get_class () const |
bool | is_a (ASN1_Type type_tag, ASN1_Class class_tag) const |
bool | is_a (int type_tag, ASN1_Class class_tag) const |
bool | is_set () const |
size_t | length () const |
BER_Object & | operator= (BER_Object &&other)=default |
BER_Object & | operator= (const BER_Object &other)=default |
uint32_t | tagging () const |
ASN1_Type | type () const |
ASN1_Type | type_tag () const |
~BER_Object ()=default |
Friends | |
class | BER_Decoder |
BER Encoded Object
Definition at line 128 of file asn1_obj.h.
|
default |
Referenced by BER_Object(), BER_Object(), operator=(), and operator=().
|
default |
References BER_Object().
|
default |
References BER_Object().
|
default |
void Botan::BER_Object::assert_is_a | ( | ASN1_Type | type_tag, |
ASN1_Class | class_tag, | ||
std::string_view | descr = "object" ) const |
Definition at line 29 of file asn1_obj.cpp.
References Botan::asn1_class_to_string(), Botan::asn1_tag_to_string(), Botan::Constructed, is_a(), Botan::NoObject, and Botan::Universal.
Referenced by Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode_null(), Botan::BER_Decoder::get_next_value(), and Botan::BER_Decoder::start_cons().
|
inline |
Definition at line 150 of file asn1_obj.h.
Referenced by Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode(), Botan::AlternativeName::decode_from(), Botan::ASN1_String::decode_from(), Botan::GeneralName::decode_from(), and Botan::BER_Decoder::get_next_value().
|
inline |
Definition at line 144 of file asn1_obj.h.
Referenced by BER_Decoder, and tagging().
|
inline |
Definition at line 154 of file asn1_obj.h.
Referenced by Botan::BER_Decoder::decode(), Botan::OID::decode_from(), and Botan::ASN1::to_string().
|
inline |
Definition at line 148 of file asn1_obj.h.
Referenced by Botan::AlternativeName::decode_from().
bool Botan::BER_Object::is_a | ( | ASN1_Type | type_tag, |
ASN1_Class | class_tag ) const |
Definition at line 61 of file asn1_obj.cpp.
Referenced by assert_is_a(), Botan::AlternativeName::decode_from(), Botan::GeneralName::decode_from(), Botan::BER_Decoder::decode_optional(), Botan::BER_Decoder::decode_optional_implicit(), Botan::BER_Decoder::decode_optional_string(), and is_a().
bool Botan::BER_Object::is_a | ( | int | type_tag, |
ASN1_Class | class_tag ) const |
|
inline |
Definition at line 138 of file asn1_obj.h.
References Botan::NoObject.
Referenced by Botan::BER_Decoder::get_next_object().
|
inline |
Definition at line 152 of file asn1_obj.h.
Referenced by BER_Decoder, Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode(), Botan::AlternativeName::decode_from(), Botan::ASN1_String::decode_from(), Botan::GeneralName::decode_from(), Botan::OID::decode_from(), Botan::BER_Decoder::decode_null(), and Botan::BER_Decoder::get_next_value().
|
default |
References BER_Object().
|
default |
References BER_Object().
|
inline |
Definition at line 140 of file asn1_obj.h.
References class_tag(), and type_tag().
Referenced by Botan::OID::decode_from(), and Botan::BER_Decoder::get_next_object().
|
inline |
Definition at line 146 of file asn1_obj.h.
Referenced by Botan::AlternativeName::decode_from(), Botan::ASN1_String::decode_from(), and Botan::ASN1_Time::decode_from().
|
inline |
Definition at line 142 of file asn1_obj.h.
Referenced by BER_Decoder, Botan::Cert_Extension::ASBlocks::ASIdentifierChoice::decode_from(), Botan::Cert_Extension::ASBlocks::ASIdentifiers::decode_from(), Botan::Cert_Extension::ASBlocks::ASIdOrRange::decode_from(), Botan::Cert_Extension::IPAddressBlocks::IPAddressChoice< V >::decode_from(), Botan::Cert_Extension::IPAddressBlocks::IPAddressFamily::decode_from(), Botan::Cert_Extension::IPAddressBlocks::IPAddressOrRange< V >::decode_from(), Botan::Cert_Extension::TNAuthList::Entry::decode_from(), and tagging().
|
friend |
Definition at line 167 of file asn1_obj.h.
References BER_Decoder, class_tag(), length(), and type_tag().
Referenced by BER_Decoder.