diff options
author | lloyd <[email protected]> | 2010-07-26 19:44:50 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-07-26 19:44:50 +0000 |
commit | c8a27139fe6b559bca2fbb64bd180c8fd2c2fa32 (patch) | |
tree | c52cf62828a8b4a5f876d3125818202a9a22b0e0 /src/libstate | |
parent | e51e9aa6a6033710920f0934178ef770fd25498f (diff) |
Modify CPUID so all the check functions are purely inline. Add a new
initialize() call which must be called prior to use of any other
functions.
Diffstat (limited to 'src/libstate')
-rw-r--r-- | src/libstate/libstate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp index 83fb31406..1db9ca44c 100644 --- a/src/libstate/libstate.cpp +++ b/src/libstate/libstate.cpp @@ -8,6 +8,7 @@ #include <botan/libstate.h> #include <botan/charset.h> #include <botan/engine.h> +#include <botan/cpuid.h> #include <botan/internal/defalloc.h> #include <botan/internal/default_engine.h> #include <botan/internal/mutex.h> @@ -241,6 +242,8 @@ RandomNumberGenerator& Library_State::global_rng() */ void Library_State::initialize(bool thread_safe) { + CPUID::initialize(); + if(mutex_factory) throw Invalid_State("Library_State has already been initialized"); |