Botan
1.10.9
|
#include <x509_dn.h>
Public Member Functions | |
void | add_attribute (const std::string &, const std::string &) |
void | add_attribute (const OID &, 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::vector< std::string > | get_attribute (const std::string &) const |
std::multimap< OID, std::string > | get_attributes () const |
MemoryVector< byte > | get_bits () const |
X509_DN () | |
X509_DN (const std::multimap< OID, std::string > &) | |
X509_DN (const std::multimap< std::string, std::string > &) | |
Static Public Member Functions | |
static std::string | deref_info_field (const std::string &) |
Botan::X509_DN::X509_DN | ( | ) |
Definition at line 20 of file x509_dn.cpp.
Botan::X509_DN::X509_DN | ( | const std::multimap< OID, std::string > & | args | ) |
Definition at line 27 of file x509_dn.cpp.
References add_attribute().
Botan::X509_DN::X509_DN | ( | const std::multimap< std::string, std::string > & | args | ) |
Definition at line 37 of file x509_dn.cpp.
References add_attribute(), and Botan::OIDS::lookup().
void Botan::X509_DN::add_attribute | ( | const std::string & | type, |
const std::string & | str | ||
) |
Definition at line 47 of file x509_dn.cpp.
References Botan::OIDS::lookup(), and oid.
Referenced by Botan::create_dn(), decode_from(), and X509_DN().
void Botan::X509_DN::add_attribute | ( | const OID & | oid, |
const std::string & | str | ||
) |
Definition at line 57 of file x509_dn.cpp.
References Botan::MemoryRegion< T >::clear(), and Botan::multimap_insert().
std::multimap< std::string, std::string > Botan::X509_DN::contents | ( | ) | const |
Definition at line 89 of file x509_dn.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 264 of file x509_dn.cpp.
References add_attribute(), Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), Botan::BER_Decoder::more_items(), oid, Botan::BER_Decoder::raw_bytes(), Botan::SEQUENCE, Botan::SET, Botan::BER_Decoder::start_cons(), Botan::ASN1_String::value(), and Botan::BER_Decoder::verify_end().
|
static |
Definition at line 126 of file x509_dn.cpp.
Referenced by get_attribute(), Botan::X509_Certificate::issuer_info(), and Botan::X509_Certificate::subject_info().
|
virtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 239 of file x509_dn.cpp.
References Botan::DIRECTORY_STRING, Botan::MemoryRegion< T >::empty(), Botan::DER_Encoder::end_cons(), get_attributes(), Botan::PRINTABLE_STRING, Botan::DER_Encoder::raw_bytes(), Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
std::vector< std::string > Botan::X509_DN::get_attribute | ( | const std::string & | attr | ) | const |
Definition at line 102 of file x509_dn.cpp.
References deref_info_field(), Botan::OIDS::lookup(), and oid.
std::multimap< OID, std::string > Botan::X509_DN::get_attributes | ( | ) | const |
Definition at line 76 of file x509_dn.cpp.
References Botan::multimap_insert().
Referenced by encode_into(), Botan::operator<(), and Botan::operator==().
MemoryVector< byte > Botan::X509_DN::get_bits | ( | ) | const |
Definition at line 118 of file x509_dn.cpp.