The unified diff between revisions [258e319e..] and [b3f30c54..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'include/config.h'
#
#
# patch "include/config.h"
# from [38e23953e7b72c4faf77c743cd894fa7c3aea1cf]
# to [277482d0f2281d9f6fceecda377d5b64b2696de7]
#
============================================================
--- include/config.h 38e23953e7b72c4faf77c743cd894fa7c3aea1cf
+++ include/config.h 277482d0f2281d9f6fceecda377d5b64b2696de7
@@ -1,15 +1,13 @@
/*************************************************
* Configuration Handling Header File *
-* (C) 1999-2007 The Botan Project *
+* (C) 1999-2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_POLICY_CONF_H__
#define BOTAN_POLICY_CONF_H__
-#include <botan/types.h>
-#include <botan/enums.h>
+#include <botan/mutex.h>
#include <string>
-#include <vector>
#include <map>
namespace Botan {
@@ -17,9 +15,12 @@ namespace Botan {
/*************************************************
* Library Configuration Settings *
*************************************************/
-class Config
+class BOTAN_DLL Config
{
public:
+ Config();
+ ~Config();
+
void load_defaults();
std::string get(const std::string&, const std::string&) const;
@@ -28,28 +29,24 @@ class Config
const std::string&, bool = true);
std::string option(const std::string&) const;
- u32bit option_as_u32bit(const std::string&) const;
u32bit option_as_time(const std::string&) const;
- bool option_as_bool(const std::string&) const;
- std::vector<std::string> option_as_list(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); }
- void load_inifile(const std::string&);
-
- static void choose_sig_format(const std::string&, std::string&,
- Signature_Format&);
- private:
std::map<std::string, std::string> settings;
+ Mutex* mutex;
};
/*************************************************
* Hook for the global config *
*************************************************/
-Config& global_config();
+BOTAN_DLL Config& global_config();
}