aboutsummaryrefslogtreecommitdiffstats
path: root/include/libstate.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-04-21 18:53:06 +0000
committerlloyd <[email protected]>2008-04-21 18:53:06 +0000
commit143cee28231dc11c77c6cf577b04088976d95c3a (patch)
tree15e7c78add9bdd4046f051eae4d3e46c5c83e691 /include/libstate.h
parent90224856d6cc454eba6d5eacf4439b2d732acd65 (diff)
parenta2941106b36829e0b7187ca7d2a825175ced7fa4 (diff)
propagate from branch 'net.randombit.botan' (head 51f9ee5180a5cacdfff31504266e883b7bb0eb00)
to branch 'net.randombit.botan.remove-libstate' (head 636b767b9686261418b1cb45a6271edeef87501b)
Diffstat (limited to 'include/libstate.h')
-rw-r--r--include/libstate.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/include/libstate.h b/include/libstate.h
index 5be88f460..6c59c6c03 100644
--- a/include/libstate.h
+++ b/include/libstate.h
@@ -42,19 +42,13 @@ class BOTAN_DLL Library_State
};
friend class Engine_Iterator;
- class BOTAN_DLL UI
- {
- public:
- virtual void pulse(Pulse_Type) {}
- virtual ~UI() {}
- };
-
Allocator* get_allocator(const std::string& = "") const;
void add_allocator(Allocator*);
void set_default_allocator(const std::string&) const;
bool rng_is_seeded() const { return rng->is_seeded(); }
void randomize(byte[], u32bit);
+ byte random();
void set_prng(RandomNumberGenerator*);
void add_entropy_source(EntropySource*, bool = true);
@@ -62,22 +56,9 @@ class BOTAN_DLL Library_State
void add_entropy(EntropySource&, bool);
u32bit seed_prng(bool, u32bit);
- void set_timer(class Timer*);
- u64bit system_clock() const;
-
class Config& config() const;
class Mutex* get_mutex() const;
-
- void set_x509_state(class X509_GlobalState*);
- class X509_GlobalState& x509_state();
-
- void pulse(Pulse_Type) const;
- void set_ui(UI*);
-
- void set_transcoder(class Charset_Transcoder*);
- std::string transcode(const std::string,
- Character_Set, Character_Set) const;
private:
Library_State(const Library_State&) {}
Library_State& operator=(const Library_State&) { return (*this); }
@@ -89,15 +70,11 @@ class BOTAN_DLL Library_State
class Mutex* engine_lock;
class Mutex* rng_lock;
- class Timer* timer;
mutable class Config* config_obj;
- class X509_GlobalState* x509_state_obj;
std::map<std::string, Allocator*> alloc_factory;
mutable Allocator* cached_default_allocator;
- UI* ui;
- class Charset_Transcoder* transcoder;
RandomNumberGenerator* rng;
std::vector<Allocator*> allocators;
std::vector<EntropySource*> entropy_sources;