aboutsummaryrefslogtreecommitdiffstats
path: root/include/config.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-07-01 18:23:21 +0000
committerlloyd <[email protected]>2006-07-01 18:23:21 +0000
commit3234d70ac408dc48c31fe30ac7f456829c3a1912 (patch)
treeb5ffc1810c959ac1a875031b733cfab49e0c8457 /include/config.h
parentc7d0da91327228e0693a42be1f8f0e92d5769141 (diff)
Rename conf.* to config.*
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
new file mode 100644
index 000000000..6bf0122f6
--- /dev/null
+++ b/include/config.h
@@ -0,0 +1,51 @@
+/*************************************************
+* Configuration Handling Header File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#ifndef BOTAN_POLICY_CONF_H__
+#define BOTAN_POLICY_CONF_H__
+
+#include <botan/types.h>
+#include <botan/enums.h>
+#include <string>
+#include <vector>
+
+namespace Botan {
+
+class Library_State;
+
+namespace Config {
+
+/*************************************************
+* Load a configuration file *
+*************************************************/
+void load(const std::string&);
+void load(const std::string&, Library_State&);
+
+/*************************************************
+* Set an option *
+*************************************************/
+void set(const std::string&, const std::string&, bool = true);
+
+/*************************************************
+* Get the value of some option *
+*************************************************/
+std::vector<std::string> get_list(const std::string&);
+std::string get_string(const std::string&);
+u32bit get_u32bit(const std::string&);
+u32bit get_time(const std::string&);
+bool get_bool(const std::string&);
+
+/*************************************************
+* Choose the signature format for a PK algorithm *
+*************************************************/
+void choose_sig_format(const std::string&, std::string&, Signature_Format&);
+void choose_sig_format(const std::string&, std::string&, std::string&,
+ Signature_Format&);
+
+}
+
+}
+
+#endif