aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-07-01 23:17:47 +0000
committerlloyd <[email protected]>2006-07-01 23:17:47 +0000
commit984d1c480e724ffba5a5aa1f09980016bb9b03ca (patch)
tree4a71e6678ec7e235e9f1118204d07c48b32c0977 /include
parent6cf2f6d9554f724d0e8afc0020424950b8452d98 (diff)
Fix config handling (stupid mismatch was causing the getter for the
config options to always fail). Move the default config stuff from libstate to the config object.
Diffstat (limited to 'include')
-rw-r--r--include/config.h4
-rw-r--r--include/libstate.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h
index 0b28cb848..e230314a7 100644
--- a/include/config.h
+++ b/include/config.h
@@ -20,6 +20,8 @@ namespace Botan {
class Config
{
public:
+ 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&,
@@ -37,8 +39,8 @@ class Config
static void choose_sig_format(const std::string&, std::string&,
Signature_Format&);
-
private:
+
std::map<std::string, std::string> settings;
};
diff --git a/include/libstate.h b/include/libstate.h
index ebc42ac01..951cdf57e 100644
--- a/include/libstate.h
+++ b/include/libstate.h
@@ -58,7 +58,6 @@ class Library_State
void set_transcoder(class Charset_Transcoder*);
std::string transcode(const std::string,
Character_Set, Character_Set) const;
- void set_default_policy();
Library_State(class Mutex_Factory*);
~Library_State();