Botan  1.10.9
Public Member Functions | Public Attributes | List of all members
Botan::BER_Object Class Reference

#include <asn1_int.h>

Public Member Functions

void assert_is_a (ASN1_Tag, ASN1_Tag)
 

Public Attributes

ASN1_Tag class_tag
 
ASN1_Tag type_tag
 
SecureVector< bytevalue
 

Detailed Description

BER Encoded Object

Definition at line 77 of file asn1_int.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.

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

142  {
143  if(this->type_tag != type_tag || this->class_tag != class_tag)
144  throw BER_Decoding_Error("Tag mismatch when decoding");
145  }
ASN1_Tag class_tag
Definition: asn1_int.h:82
ASN1_Tag type_tag
Definition: asn1_int.h:82

Member Data Documentation

ASN1_Tag Botan::BER_Object::class_tag
ASN1_Tag Botan::BER_Object::type_tag
SecureVector<byte> Botan::BER_Object::value

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