diff options
Diffstat (limited to 'src/libstate/libstate.h')
-rw-r--r-- | src/libstate/libstate.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libstate/libstate.h b/src/libstate/libstate.h index 4d0a2b3e7..13333367c 100644 --- a/src/libstate/libstate.h +++ b/src/libstate/libstate.h @@ -11,11 +11,11 @@ #include <botan/global_state.h> #include <botan/algo_factory.h> #include <botan/rng.h> - #include <mutex> #include <string> #include <vector> #include <map> +#include <memory> namespace Botan { @@ -43,6 +43,8 @@ class BOTAN_DLL Library_State */ RandomNumberGenerator& global_rng(); + void poll_available_sources(class Entropy_Accumulator& accum); + /** * Set the default allocator * @param name the name of the allocator to use as the default @@ -100,11 +102,16 @@ class BOTAN_DLL Library_State static RandomNumberGenerator* make_global_rng(Algorithm_Factory& af, std::mutex& mutex); + static std::vector<std::unique_ptr<EntropySource>> entropy_sources(); + void load_default_config(); std::mutex global_rng_lock; RandomNumberGenerator* global_rng_ptr; + std::mutex m_entropy_src_mutex; + std::vector<std::unique_ptr<EntropySource>> m_sources; + std::mutex config_lock; std::map<std::string, std::string> config; |