8 #ifndef BOTAN_X509_ALT_NAME_H_
9 #define BOTAN_X509_ALT_NAME_H_
11 #include <botan/asn1_obj.h>
12 #include <botan/asn1_str.h>
13 #include <botan/asn1_oid.h>
24 void encode_into(
class DER_Encoder&)
const override;
27 std::multimap<std::string, std::string> contents()
const;
29 bool has_field(
const std::string& attr)
const;
30 std::vector<std::string> get_attribute(
const std::string& attr)
const;
32 std::string get_first_attribute(
const std::string& attr)
const;
34 void add_attribute(
const std::string&
type,
const std::string& value);
35 void add_othername(
const OID& oid,
const std::string& value,
ASN1_Tag type);
47 bool has_items()
const;
50 const std::string& uri =
"",
51 const std::string& dns =
"",
52 const std::string& ip_address =
"");
54 std::multimap<std::string, std::string> m_alt_info;
55 std::multimap<OID, ASN1_String> m_othernames;
const std::multimap< std::string, std::string > & get_attributes() const
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
const std::multimap< OID, ASN1_String > & get_othernames() const