aboutsummaryrefslogtreecommitdiffstats
path: root/src/policy.cpp
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 /src/policy.cpp
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 'src/policy.cpp')
-rw-r--r--src/policy.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/policy.cpp b/src/policy.cpp
index e4fa78edf..2a5329e89 100644
--- a/src/policy.cpp
+++ b/src/policy.cpp
@@ -3,7 +3,6 @@
* (C) 1999-2006 The Botan Project *
*************************************************/
-#include <botan/libstate.h>
#include <botan/config.h>
namespace Botan {
@@ -363,12 +362,12 @@ void set_default_dl_groups(Config& config)
/*************************************************
* Set the default policy *
*************************************************/
-void Library_State::set_default_policy()
+void Config::load_defaults()
{
- set_default_config(config());
- set_default_aliases(config());
- set_default_oids(config());
- set_default_dl_groups(config());
+ set_default_config(*this);
+ set_default_aliases(*this);
+ set_default_oids(*this);
+ set_default_dl_groups(*this);
}
}