Botan
1.10.9
|
#include <asn1_obj.h>
Public Member Functions | |
void | add_attribute (const std::string &, const std::string &) |
void | add_othername (const OID &, const std::string &, ASN1_Tag) |
AlternativeName (const std::string &="", const std::string &="", const std::string &="", const std::string &="") | |
std::multimap< std::string, std::string > | contents () const |
void | decode_from (class BER_Decoder &) |
void | encode_into (class DER_Encoder &) const |
std::multimap< std::string, std::string > | get_attributes () const |
std::multimap< OID, ASN1_String > | get_othernames () const |
bool | has_items () const |
Alternative Name
Definition at line 68 of file asn1_obj.h.
Botan::AlternativeName::AlternativeName | ( | const std::string & | email_addr = "" , |
const std::string & | uri = "" , |
||
const std::string & | dns = "" , |
||
const std::string & | ip = "" |
||
) |
Definition at line 41 of file asn1_alt.cpp.
References add_attribute().
void Botan::AlternativeName::add_attribute | ( | const std::string & | type, |
const std::string & | str | ||
) |
Definition at line 55 of file asn1_alt.cpp.
References Botan::multimap_insert().
Referenced by AlternativeName(), Botan::create_alt_name(), and decode_from().
void Botan::AlternativeName::add_othername | ( | const OID & | oid, |
const std::string & | value, | ||
ASN1_Tag | type | ||
) |
Definition at line 73 of file asn1_alt.cpp.
References Botan::multimap_insert().
Referenced by decode_from().
std::multimap< std::string, std::string > Botan::AlternativeName::contents | ( | ) | const |
Definition at line 100 of file asn1_alt.cpp.
References Botan::OIDS::lookup(), and Botan::multimap_insert().
|
virtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 183 of file asn1_alt.cpp.
References add_attribute(), add_othername(), Botan::BER_Object::class_tag, Botan::CONSTRUCTED, Botan::CONTEXT_SPECIFIC, Botan::BER_Decoder::decode(), Botan::BER_Decoder::get_next_object(), Botan::ipv4_to_string(), Botan::LATIN1_CHARSET, Botan::load_be< u32bit >(), Botan::LOCAL_CHARSET, Botan::BER_Decoder::more_items(), oid, Botan::SEQUENCE, Botan::MemoryRegion< T >::size(), Botan::BER_Decoder::start_cons(), Botan::ASN1::to_string(), Botan::Charset::transcode(), Botan::BER_Object::type_tag, Botan::UNIVERSAL, Botan::BER_Object::value, and Botan::BER_Decoder::verify_end().
|
virtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 157 of file asn1_alt.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), Botan::DER_Encoder::end_explicit(), Botan::SEQUENCE, Botan::DER_Encoder::start_cons(), and Botan::DER_Encoder::start_explicit().
std::multimap< std::string, std::string > Botan::AlternativeName::get_attributes | ( | ) | const |
Definition at line 84 of file asn1_alt.cpp.
std::multimap< OID, ASN1_String > Botan::AlternativeName::get_othernames | ( | ) | const |
Definition at line 92 of file asn1_alt.cpp.
bool Botan::AlternativeName::has_items | ( | ) | const |
Definition at line 118 of file asn1_alt.cpp.