Botan  2.7.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::ASN1_Object Class Referenceabstract

#include <asn1_obj.h>

Inheritance diagram for Botan::ASN1_Object:
Botan::AlgorithmIdentifier Botan::AlternativeName Botan::ASN1_String Botan::Attribute Botan::Cert_Extension::CRL_Distribution_Points::Distribution_Point Botan::CRL_Entry Botan::Extensions Botan::GeneralName Botan::GeneralSubtree Botan::OCSP::CertID Botan::OCSP::SingleResponse Botan::OID Botan::X509_DN Botan::X509_Object Botan::X509_Time

Public Member Functions

 ASN1_Object ()=default
 ASN1_Object (const ASN1_Object &)=default
std::vector< uint8_t > BER_encode () const
virtual void decode_from (BER_Decoder &from)=0
virtual void encode_into (DER_Encoder &to) const =0
ASN1_Objectoperator= (const ASN1_Object &)=default
virtual ~ASN1_Object ()=default

Detailed Description

Basic ASN.1 Object Interface

Definition at line 65 of file asn1_obj.h.

Constructor & Destructor Documentation

◆ ASN1_Object() [1/2]

Botan::ASN1_Object::ASN1_Object ( )

◆ ASN1_Object() [2/2]

Botan::ASN1_Object::ASN1_Object ( const ASN1_Object )

◆ ~ASN1_Object()

virtual Botan::ASN1_Object::~ASN1_Object ( )

Member Function Documentation

◆ BER_encode()

std::vector< uint8_t > Botan::ASN1_Object::BER_encode ( ) const

Return the encoding of this object. This is a convenience method when just one object needs to be serialized. Use DER_Encoder for complicated encodings.

Definition at line 16 of file asn1_obj.cpp.

References encode_into().

Referenced by Botan::PSSR::config_for_x509(), Botan::Certificate_Store_In_SQL::find_all_certs(), Botan::Certificate_Store_In_SQL::find_cert(), Botan::X509_Certificate::fingerprint(), Botan::Certificate_Store_In_SQL::insert_cert(), Botan::X509_Object::PEM_encode(), and Botan::Certificate_Store_In_SQL::revoke_cert().

17  {
18  std::vector<uint8_t> output;
19  DER_Encoder der(output);
20  this->encode_into(der);
21  return output;
22  }
virtual void encode_into(DER_Encoder &to) const =0

◆ decode_from()

virtual void Botan::ASN1_Object::decode_from ( BER_Decoder from)
pure virtual

◆ encode_into()

virtual void Botan::ASN1_Object::encode_into ( DER_Encoder to) const
pure virtual

◆ operator=()

ASN1_Object& Botan::ASN1_Object::operator= ( const ASN1_Object )

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