Botan 2.19.1
Crypto and TLS for C&
|
#include <asn1_obj.h>
Public Member Functions | |
void | assert_is_a (ASN1_Tag type_tag, ASN1_Tag class_tag, const std::string &descr="object") const |
BER_Object () | |
BER_Object (BER_Object &&other)=default | |
BER_Object (const BER_Object &other)=default | |
const uint8_t * | bits () const |
ASN1_Tag | get_class () const |
bool | is_a (ASN1_Tag type_tag, ASN1_Tag class_tag) const |
bool | is_a (int type_tag, ASN1_Tag 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 |
ASN1_Tag | tagging () const |
ASN1_Tag | type () const |
Public Attributes | |
BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES | __pad0__: ASN1_Tag type_tag |
BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES | class_tag |
secure_vector< uint8_t > | value |
Friends | |
class | BER_Decoder |
BER Encoded Object
Definition at line 99 of file asn1_obj.h.
|
inline |
Definition at line 102 of file asn1_obj.h.
|
default |
|
default |
void Botan::BER_Object::assert_is_a | ( | ASN1_Tag | type_tag, |
ASN1_Tag | class_tag, | ||
const std::string & | descr = "object" |
||
) | const |
Definition at line 27 of file asn1_obj.cpp.
References Botan::asn1_class_to_string(), Botan::asn1_tag_to_string(), class_tag, Botan::CONSTRUCTED, is_a(), Botan::NO_OBJECT, Botan::ASN1::to_string(), and Botan::UNIVERSAL.
Referenced by 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 119 of file asn1_obj.h.
Referenced by Botan::BER_Decoder::decode(), Botan::AlternativeName::decode_from(), Botan::OID::decode_from(), Botan::ASN1_String::decode_from(), Botan::BER_Decoder::get_next_value(), and Botan::ASN1::to_string().
|
inline |
Definition at line 71 of file asn1_obj.cpp.
References class_tag.
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_Tag | class_tag | ||
) | const |
|
inline |
Definition at line 112 of file asn1_obj.h.
References Botan::NO_OBJECT.
Referenced by Botan::BER_Decoder::get_next_object(), Botan::BER_Decoder::more_items(), Botan::BER_Decoder::push_back(), and Botan::BER_Decoder::verify_end().
|
inline |
Definition at line 121 of file asn1_obj.h.
Referenced by Botan::BER_Decoder::decode(), Botan::AlternativeName::decode_from(), Botan::OID::decode_from(), Botan::ASN1_String::decode_from(), Botan::BER_Decoder::decode_null(), Botan::BER_Decoder::get_next_value(), and Botan::ASN1::to_string().
|
default |
|
default |
|
inline |
Definition at line 114 of file asn1_obj.h.
References type.
Referenced by Botan::OID::decode_from(), and Botan::BER_Decoder::get_next_object().
|
inline |
Definition at line 116 of file asn1_obj.h.
Referenced by Botan::ASN1_Time::decode_from(), Botan::AlternativeName::decode_from(), and Botan::ASN1_String::decode_from().
|
friend |
Definition at line 141 of file asn1_obj.h.
BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES Botan::BER_Object::__pad0__ |
Definition at line 130 of file asn1_obj.h.
BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES Botan::BER_Object::class_tag |
Definition at line 136 of file asn1_obj.h.
Referenced by assert_is_a(), and is_a().
secure_vector<uint8_t> Botan::BER_Object::value |
Definition at line 137 of file asn1_obj.h.