aboutsummaryrefslogtreecommitdiffstats
path: root/include/oids.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/oids.h')
-rw-r--r--include/oids.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/oids.h b/include/oids.h
new file mode 100644
index 000000000..edb3b2bd4
--- /dev/null
+++ b/include/oids.h
@@ -0,0 +1,39 @@
+/*************************************************
+* OID Registry Header File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#ifndef BOTAN_OIDS_H__
+#define BOTAN_OIDS_H__
+
+#include <botan/asn1_oid.h>
+
+namespace Botan {
+
+namespace OIDS {
+
+/*************************************************
+* Register an OID to string mapping *
+*************************************************/
+void add_oid(const OID&, const std::string&);
+
+/*************************************************
+* Do an OID to string lookup *
+*************************************************/
+std::string lookup(const OID&);
+
+/*************************************************
+* Do a string to OID lookup *
+*************************************************/
+OID lookup(const std::string&);
+
+/*************************************************
+* See if an OID exists in the internal table *
+*************************************************/
+bool have_oid(const std::string&);
+
+}
+
+}
+
+#endif