8 #ifndef BOTAN_ASN1_STRING_H_
9 #define BOTAN_ASN1_STRING_H_
11 #include <botan/asn1_obj.h>
22 void encode_into(
class DER_Encoder&)
const override;
27 const std::string&
value()
const {
return m_utf8_str; }
29 size_t size()
const {
return value().size(); }
31 bool empty()
const {
return m_utf8_str.empty(); }
33 std::string BOTAN_DEPRECATED(
"Use value() to get UTF-8 string instead")
40 static
bool is_string_type(
ASN1_Tag tag);
43 {
return value() == other.value(); }
48 std::vector<uint8_t> m_data;
49 std::string m_utf8_str;
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
const std::string & value() const