aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/datastor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/x509/datastor.h')
-rw-r--r--src/lib/x509/datastor.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/lib/x509/datastor.h b/src/lib/x509/datastor.h
index c730c7140..556a78984 100644
--- a/src/lib/x509/datastor.h
+++ b/src/lib/x509/datastor.h
@@ -8,7 +8,8 @@
#ifndef BOTAN_DATA_STORE_H_
#define BOTAN_DATA_STORE_H_
-#include <botan/secmem.h>
+#include <botan/x509_dn.h>
+#include <botan/asn1_alt_name.h>
#include <functional>
#include <string>
#include <vector>
@@ -23,7 +24,7 @@ namespace Botan {
* reasons. There is no reason for applications to use this type directly.
* It will be removed in a future major release.
*/
-class BOTAN_PUBLIC_API(2,0) Data_Store
+class BOTAN_UNSTABLE_API Data_Store
{
public:
/**
@@ -55,6 +56,29 @@ class BOTAN_PUBLIC_API(2,0) Data_Store
std::multimap<std::string, std::string> m_contents;
};
+/*
+* Data Store Extraction Operations
+*/
+
+/*
+* Create and populate a X509_DN
+* @param info data store containing DN information
+* @return DN containing attributes from data store
+*/
+BOTAN_PUBLIC_API(2,0) X509_DN
+BOTAN_DEPRECATED("Avoid roundtripping names through Data_Store")
+create_dn(const Data_Store& info);
+
+/*
+* Create and populate an AlternativeName
+* @param info data store containing AlternativeName information
+* @return AlternativeName containing attributes from data store
+*/
+BOTAN_PUBLIC_API(2,0) AlternativeName
+BOTAN_DEPRECATED("Avoid roundtripping names through Data_Store")
+create_alt_name(const Data_Store& info);
+
+
}
#endif