|
Botan
2.13.0
Crypto and TLS for C++11
|
#include <asn1_str.h>
Public Member Functions | |
| ASN1_String (const std::string &utf8="") | |
| ASN1_String (const std::string &utf8, ASN1_Tag tag) | |
| std::vector< uint8_t > | BER_encode () const |
| void | decode_from (class BER_Decoder &) override |
| bool | empty () const |
| void | encode_into (class DER_Encoder &) const override |
| std::string | iso_8859 () const |
| bool | operator== (const ASN1_String &other) const |
| size_t | size () const |
| ASN1_Tag | tagging () const |
| const std::string & | value () const |
Static Public Member Functions | |
| static bool | is_string_type (ASN1_Tag tag) |
ASN.1 string type This class normalizes all inputs to a UTF-8 std::string
Definition at line 19 of file asn1_str.h.
|
explicit |
Definition at line 97 of file asn1_str.cpp.
| Botan::ASN1_String::ASN1_String | ( | const std::string & | utf8, |
| ASN1_Tag | tag | ||
| ) |
Definition at line 84 of file asn1_str.cpp.
References Botan::DIRECTORY_STRING.
|
inherited |
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 Botan::ASN1_Object::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().
|
overridevirtual |
Decode whatever this object is from from
| from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 129 of file asn1_str.cpp.
References Botan::BER_Object::bits(), Botan::BMP_STRING, Botan::BER_Decoder::get_next_object(), Botan::BER_Object::length(), Botan::ASN1::to_string(), Botan::BER_Object::type(), Botan::ucs2_to_utf8(), Botan::ucs4_to_utf8(), and Botan::UNIVERSAL_STRING.
|
inline |
Definition at line 31 of file asn1_str.h.
Referenced by Botan::X509_DN::add_attribute().
|
overridevirtual |
Encode whatever this object is into to
| to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 113 of file asn1_str.cpp.
References Botan::DER_Encoder::add_object(), tagging(), and Botan::UNIVERSAL.
|
static |
Return true iff this is a tag for a known string type we can handle. This ignores string types that are not supported, eg teletexString
Definition at line 68 of file asn1_str.cpp.
References Botan::BMP_STRING, Botan::IA5_STRING, Botan::NUMERIC_STRING, Botan::PRINTABLE_STRING, Botan::T61_STRING, Botan::UNIVERSAL_STRING, Botan::UTF8_STRING, and Botan::VISIBLE_STRING.
Referenced by Botan::AlternativeName::decode_from().
| std::string Botan::ASN1_String::iso_8859 | ( | ) | const |
|
inline |
Definition at line 42 of file asn1_str.h.
|
inline |
Definition at line 29 of file asn1_str.h.
|
inline |
|
inline |
Definition at line 27 of file asn1_str.h.
Referenced by Botan::X509_DN::get_first_attribute(), and Botan::TLS::Session::Session().
1.8.9.1