aboutsummaryrefslogtreecommitdiffstats
path: root/include/config.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-30 02:28:47 +0000
committerlloyd <[email protected]>2008-06-30 02:28:47 +0000
commita01d19fd314804f3466737b3c6314bec0d511990 (patch)
tree7d8e24004d0d9c7a8852a2faa1f8c0612eee90dd /include/config.h
parent954e01df3c99836d13f2a188193b0bdbf660856a (diff)
Remove the Config class.
In reality, Config was a singleton, with the only owner being the Library_State object. Theoretically one could create and use another Config instance, but in practice it was never done. Reflect the reality and inline the members and public functions of Config in Library_State, removing Config entirely.
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/include/config.h b/include/config.h
deleted file mode 100644
index 65147e3e6..000000000
--- a/include/config.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/*************************************************
-* Configuration Handling Header File *
-* (C) 1999-2008 Jack Lloyd *
-*************************************************/
-
-#ifndef BOTAN_POLICY_CONF_H__
-#define BOTAN_POLICY_CONF_H__
-
-#include <botan/mutex.h>
-#include <string>
-#include <map>
-
-namespace Botan {
-
-/*************************************************
-* Library Configuration Settings *
-*************************************************/
-class BOTAN_DLL Config
- {
- public:
- Config();
- ~Config();
-
- void load_defaults();
-
- std::string get(const std::string&, const std::string&) const;
- bool is_set(const std::string&, const std::string&) const;
- void set(const std::string&, const std::string&,
- const std::string&, bool = true);
-
- std::string option(const std::string&) const;
-
- void set_option(const std::string, const std::string&);
-
- void add_alias(const std::string&, const std::string&);
- std::string deref_alias(const std::string&) const;
- private:
- Config(const Config&) {}
- Config& operator=(const Config&) { return (*this); }
-
- std::map<std::string, std::string> settings;
- Mutex* mutex;
- };
-
-}
-
-#endif