Botan
2.1.0
Crypto and TLS for C++11
|
#include <asn1_alt_name.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 &) override |
void | encode_into (class DER_Encoder &) const override |
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 22 of file asn1_alt_name.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_name.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_name.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 72 of file asn1_alt_name.cpp.
References Botan::multimap_insert().
Referenced by decode_from().
std::multimap< std::string, std::string > Botan::AlternativeName::contents | ( | ) | const |
Definition at line 99 of file asn1_alt_name.cpp.
References Botan::OIDS::lookup(), and Botan::multimap_insert().
|
overridevirtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 178 of file asn1_alt_name.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< uint32_t >(), Botan::LOCAL_CHARSET, Botan::BER_Decoder::more_items(), Botan::SEQUENCE, 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().
|
overridevirtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 153 of file asn1_alt_name.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 83 of file asn1_alt_name.cpp.
std::multimap< OID, ASN1_String > Botan::AlternativeName::get_othernames | ( | ) | const |
Definition at line 91 of file asn1_alt_name.cpp.
bool Botan::AlternativeName::has_items | ( | ) | const |
Definition at line 115 of file asn1_alt_name.cpp.