Botan  1.11.15
Public Member Functions | Public Attributes
Botan::BER_Object Class Reference

#include <asn1_obj.h>

List of all members.

Public Member Functions

void assert_is_a (ASN1_Tag, ASN1_Tag)

Public Attributes

ASN1_Tag class_tag
ASN1_Tag type_tag
secure_vector< bytevalue

Detailed Description

BER Encoded Object

Definition at line 78 of file asn1_obj.h.


Member Function Documentation

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

Definition at line 141 of file ber_dec.cpp.

References Botan::ASN1::to_string().

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

   {
   if(this->type_tag != type_tag || this->class_tag != class_tag)
      throw BER_Decoding_Error("Tag mismatch when decoding got " +
                               std::to_string(this->type_tag) + "/" +
                               std::to_string(this->class_tag) + " expected " +
                               std::to_string(type_tag) + "/" +
                               std::to_string(class_tag));
   }

Member Data Documentation


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