Botan
2.1.0
Crypto and TLS for C++11
|
#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 &) override |
bool | empty () const |
void | encode_into (class DER_Encoder &) const override |
std::vector< std::string > | get_attribute (const std::string &) const |
std::multimap< OID, std::string > | get_attributes () const |
std::vector< uint8_t > | 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 22 of file x509_dn.cpp.
|
explicit |
Definition at line 29 of file x509_dn.cpp.
References add_attribute().
|
explicit |
Definition at line 38 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().
Referenced by Botan::create_dn(), decode_from(), Botan::operator>>(), 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::multimap_insert().
std::multimap< std::string, std::string > Botan::X509_DN::contents | ( | ) | const |
Definition at line 85 of file x509_dn.cpp.
References Botan::OIDS::lookup(), and Botan::multimap_insert().
Referenced by Botan::operator<<(), and Botan::X509_CRL::X509_CRL().
|
overridevirtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 250 of file x509_dn.cpp.
References add_attribute(), Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), Botan::BER_Decoder::more_items(), Botan::BER_Decoder::raw_bytes(), Botan::SEQUENCE, Botan::SET, Botan::BER_Decoder::start_cons(), and Botan::ASN1_String::value().
Referenced by Botan::Certificate_Store_In_SQL::all_subjects(), and Botan::GeneralName::decode_from().
|
static |
Definition at line 119 of file x509_dn.cpp.
Referenced by get_attribute(), Botan::X509_Certificate::issuer_info(), Botan::operator>>(), and Botan::X509_Certificate::subject_info().
|
inline |
Definition at line 40 of file x509_dn.h.
Referenced by Botan::OCSP::Response::check_signature().
|
overridevirtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 225 of file x509_dn.cpp.
References Botan::DIRECTORY_STRING, Botan::DER_Encoder::end_cons(), get_attributes(), Botan::PRINTABLE_STRING, Botan::DER_Encoder::raw_bytes(), Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
Referenced by Botan::Certificate_Store_In_SQL::find_cert(), and Botan::Certificate_Store_In_SQL::insert_cert().
std::vector< std::string > Botan::X509_DN::get_attribute | ( | const std::string & | attr | ) | const |
Definition at line 96 of file x509_dn.cpp.
References deref_info_field(), and Botan::OIDS::lookup().
std::multimap< OID, std::string > Botan::X509_DN::get_attributes | ( | ) | const |
Definition at line 74 of file x509_dn.cpp.
References Botan::multimap_insert().
Referenced by encode_into(), Botan::operator<(), and Botan::operator==().
std::vector< uint8_t > Botan::X509_DN::get_bits | ( | ) | const |
Definition at line 111 of file x509_dn.cpp.