Botan 3.6.1
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 () | |
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 |
Friends | |
class | BER_Decoder |
BER Encoded Object
Definition at line 127 of file asn1_obj.h.
|
inline |
Definition at line 129 of file asn1_obj.h.
References Botan::NoObject, and Botan::Universal.
|
default |
|
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 151 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(), Botan::BER_Decoder::get_next_value(), and Botan::ASN1::to_string().
|
inline |
Definition at line 145 of file asn1_obj.h.
|
inline |
Definition at line 155 of file asn1_obj.h.
Referenced by Botan::BER_Decoder::decode(), and Botan::OID::decode_from().
|
inline |
Definition at line 149 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 139 of file asn1_obj.h.
Referenced by Botan::BER_Decoder::get_next_object(), Botan::BER_Decoder::more_items(), Botan::BER_Decoder::peek_next_object(), Botan::BER_Decoder::push_back(), Botan::BER_Decoder::push_back(), and Botan::BER_Decoder::verify_end().
|
inline |
Definition at line 153 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(), Botan::OID::decode_from(), Botan::BER_Decoder::decode_null(), Botan::BER_Decoder::get_next_value(), and Botan::ASN1::to_string().
|
default |
|
default |
|
inline |
Definition at line 141 of file asn1_obj.h.
Referenced by Botan::OID::decode_from(), and Botan::BER_Decoder::get_next_object().
|
inline |
Definition at line 147 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 143 of file asn1_obj.h.
Referenced by Botan::Cert_Extension::TNAuthList::Entry::decode_from().
|
friend |
Definition at line 168 of file asn1_obj.h.