Botan  2.4.0
Crypto and TLS for C++11
Public Member Functions | Public Attributes | List of all members
Botan::BER_Object Class Referencefinal

#include <asn1_obj.h>

Public Member Functions

void assert_is_a (ASN1_Tag type_tag, ASN1_Tag class_tag) const
 

Public Attributes

ASN1_Tag class_tag
 
ASN1_Tag type_tag
 
secure_vector< uint8_t > value
 

Detailed Description

BER Encoded Object

Definition at line 88 of file asn1_obj.h.

Member Function Documentation

◆ assert_is_a()

void Botan::BER_Object::assert_is_a ( ASN1_Tag  type_tag,
ASN1_Tag  class_tag 
) const

Definition at line 153 of file ber_dec.cpp.

References Botan::ASN1::to_string().

Referenced by Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode_null(), Botan::BER_Decoder::get_next_value(), and Botan::BER_Decoder::start_cons().

154  {
155  if(type_tag != type_tag_ || class_tag != class_tag_)
156  throw BER_Decoding_Error("Tag mismatch when decoding got " +
157  std::to_string(type_tag) + "/" +
158  std::to_string(class_tag) + " expected " +
159  std::to_string(type_tag_) + "/" +
160  std::to_string(class_tag_));
161  }
std::string to_string(const BER_Object &obj)
Definition: asn1_obj.cpp:108
ASN1_Tag class_tag
Definition: asn1_obj.h:94
ASN1_Tag type_tag
Definition: asn1_obj.h:94

Member Data Documentation

◆ class_tag

ASN1_Tag Botan::BER_Object::class_tag

◆ type_tag

ASN1_Tag Botan::BER_Object::type_tag

◆ value

secure_vector<uint8_t> Botan::BER_Object::value

The documentation for this class was generated from the following files: