aboutsummaryrefslogtreecommitdiffstats
path: root/include/libstate.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-10-13 20:11:51 +0000
committerlloyd <[email protected]>2007-10-13 20:11:51 +0000
commite0fe7b1a473dd862e41a662d4bb9edab381370cf (patch)
treee4820c0fe53636fa9d640f0a8fa7b4987fbc3796 /include/libstate.h
parent0fcaf44cec8d534f070ae336785f7d4889a8b1ad (diff)
Move most of the initializer code directly into the Library_State constructor
Diffstat (limited to 'include/libstate.h')
-rw-r--r--include/libstate.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/libstate.h b/include/libstate.h
index dcd6f26a5..564605a2a 100644
--- a/include/libstate.h
+++ b/include/libstate.h
@@ -8,6 +8,7 @@
#include <botan/base.h>
#include <botan/enums.h>
+#include <botan/init.h>
#include <botan/ui.h>
#include <string>
#include <vector>
@@ -52,8 +53,6 @@ class Library_State
void add_entropy(EntropySource&, bool);
u32bit seed_prng(bool, u32bit);
- void load(class Modules&);
-
void set_timer(class Timer*);
u64bit system_clock() const;
@@ -74,7 +73,7 @@ class Library_State
std::string transcode(const std::string,
Character_Set, Character_Set) const;
- Library_State(class Mutex_Factory*);
+ Library_State(const InitializerOptions&, Modules&);
~Library_State();
private:
Library_State(const Library_State&) {}
@@ -84,7 +83,7 @@ class Library_State
class Mutex_Factory* mutex_factory;
class Timer* timer;
- class Config* config_obj;
+ mutable class Config* config_obj;
class X509_GlobalState* x509_state_obj;
std::map<std::string, class Mutex*> locks;