diff options
Diffstat (limited to 'src/lib/base')
-rw-r--r-- | src/lib/base/init.cpp | 23 | ||||
-rw-r--r-- | src/lib/base/init.h | 11 |
2 files changed, 29 insertions, 5 deletions
diff --git a/src/lib/base/init.cpp b/src/lib/base/init.cpp new file mode 100644 index 000000000..1befc34d2 --- /dev/null +++ b/src/lib/base/init.cpp @@ -0,0 +1,23 @@ +/* +* (C) 2015 Jack Lloyd +* +* Botan is released under the Simplified BSD License (see license.txt) +*/ + +#include <botan/init.h> + +namespace Botan { + +//static +void LibraryInitializer::initialize(const std::string&) + { + // none needed currently + } + +//static +void LibraryInitializer::deinitialize() + { + // none needed currently + } + +} diff --git a/src/lib/base/init.h b/src/lib/base/init.h index dce564b46..b73355628 100644 --- a/src/lib/base/init.h +++ b/src/lib/base/init.h @@ -19,13 +19,14 @@ namespace Botan { * case, and this class is no longer needed and kept only for backwards * compatability. */ -class LibraryInitializer +class BOTAN_DLL LibraryInitializer { public: - LibraryInitializer(const std::string& = "") {} - ~LibraryInitializer() {} - static void initialize(const std::string& = "") {} - static void deinitialize() {} + LibraryInitializer(const std::string& s = "") { initialize(s); } + ~LibraryInitializer() { deinitialize(); } + + static void initialize(const std::string& = ""); + static void deinitialize(); }; } |