aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-28 23:53:38 +0000
committerlloyd <[email protected]>2008-09-28 23:53:38 +0000
commita8b75e4aed9179a21e60cb3cfb47bdd263f5e4c5 (patch)
tree71d01a90d57fb8001370d14f9e5afc733ae73133 /src
parent7853a74932791f7760961ddeb3a6064721eeb8b4 (diff)
Move parsing.{h,cpp} to utils module
Diffstat (limited to 'src')
-rw-r--r--src/utils/parsing.cpp (renamed from src/parsing.cpp)0
-rw-r--r--src/utils/parsing.h39
2 files changed, 39 insertions, 0 deletions
diff --git a/src/parsing.cpp b/src/utils/parsing.cpp
index 550cd3586..550cd3586 100644
--- a/src/parsing.cpp
+++ b/src/utils/parsing.cpp
diff --git a/src/utils/parsing.h b/src/utils/parsing.h
new file mode 100644
index 000000000..aedfd1cbc
--- /dev/null
+++ b/src/utils/parsing.h
@@ -0,0 +1,39 @@
+/*************************************************
+* Parser Functions Header File *
+* (C) 1999-2007 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_PARSER_H__
+#define BOTAN_PARSER_H__
+
+#include <botan/types.h>
+#include <string>
+#include <vector>
+
+namespace Botan {
+
+/*************************************************
+* String Parsing Functions *
+*************************************************/
+BOTAN_DLL std::vector<std::string> parse_algorithm_name(const std::string&);
+BOTAN_DLL std::vector<std::string> split_on(const std::string&, char);
+BOTAN_DLL std::vector<u32bit> parse_asn1_oid(const std::string&);
+BOTAN_DLL bool x500_name_cmp(const std::string&, const std::string&);
+
+/*************************************************
+* String/Integer Conversions *
+*************************************************/
+BOTAN_DLL std::string to_string(u64bit, u32bit = 0);
+BOTAN_DLL u32bit to_u32bit(const std::string&);
+
+BOTAN_DLL u32bit timespec_to_u32bit(const std::string& timespec);
+
+/*************************************************
+* String/Network Address Conversions *
+*************************************************/
+BOTAN_DLL u32bit string_to_ipv4(const std::string&);
+BOTAN_DLL std::string ipv4_to_string(u32bit);
+
+}
+
+#endif