aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/asn1_alt_name.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-11-14 09:14:24 -0500
committerJack Lloyd <[email protected]>2017-11-14 16:19:43 -0500
commitce9326bef92b2ef4cd93a1de232b0daec0357a3f (patch)
tree8d17e990e99cc7e66559d21cab3d5d84d192544a /src/lib/asn1/asn1_alt_name.h
parentf66fd9c12ff7d64c925e73be12a27135790994c3 (diff)
Move X509_DN and AlternativeName from asn1 to x509
Diffstat (limited to 'src/lib/asn1/asn1_alt_name.h')
-rw-r--r--src/lib/asn1/asn1_alt_name.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/lib/asn1/asn1_alt_name.h b/src/lib/asn1/asn1_alt_name.h
deleted file mode 100644
index 9a9b759d7..000000000
--- a/src/lib/asn1/asn1_alt_name.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
-* Common ASN.1 Objects
-* (C) 1999-2007 Jack Lloyd
-* 2007 Yves Jerschow
-*
-* Botan is released under the Simplified BSD License (see license.txt)
-*/
-
-#ifndef BOTAN_ASN1_ALT_NAME_H_
-#define BOTAN_ASN1_ALT_NAME_H_
-
-#include <botan/asn1_obj.h>
-#include <botan/asn1_str.h>
-#include <botan/asn1_oid.h>
-#include <map>
-
-namespace Botan {
-
-/**
-* Alternative Name
-*/
-class BOTAN_PUBLIC_API(2,0) AlternativeName final : public ASN1_Object
- {
- public:
- void encode_into(class DER_Encoder&) const override;
- void decode_from(class BER_Decoder&) override;
-
- std::multimap<std::string, std::string> contents() const;
-
- void add_attribute(const std::string&, const std::string&);
- std::multimap<std::string, std::string> get_attributes() const;
-
- void add_othername(const OID&, const std::string&, ASN1_Tag);
- std::multimap<OID, ASN1_String> get_othernames() const;
-
- bool has_items() const;
-
- AlternativeName(const std::string& = "", const std::string& = "",
- const std::string& = "", const std::string& = "");
- private:
- std::multimap<std::string, std::string> m_alt_info;
- std::multimap<OID, ASN1_String> m_othernames;
- };
-
-}
-
-#endif