aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/parsing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/parsing.h')
-rw-r--r--src/utils/parsing.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/utils/parsing.h b/src/utils/parsing.h
index 88c5a7bc0..b37e3cb62 100644
--- a/src/utils/parsing.h
+++ b/src/utils/parsing.h
@@ -13,6 +13,10 @@
#include <vector>
#include <set>
+#include <istream>
+#include <functional>
+#include <map>
+
namespace Botan {
/**
@@ -112,6 +116,18 @@ BOTAN_DLL u32bit string_to_ipv4(const std::string& ip_str);
*/
BOTAN_DLL std::string ipv4_to_string(u32bit ip_addr);
+void BOTAN_DLL lex_cfg(std::istream& is,
+ std::function<void (std::string)> cb);
+
+void BOTAN_DLL lex_cfg_w_headers(std::istream& is,
+ std::function<void (std::string)> cb,
+ std::function<void (std::string)> header_cb);
+
+std::map<std::string, std::map<std::string, std::string>>
+BOTAN_DLL
+parse_cfg(std::istream& is);
+
+
}
#endif