diff options
author | lloyd <[email protected]> | 2006-07-12 06:20:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-07-12 06:20:58 +0000 |
commit | 861c01037180b83a2c28764d02930dda90191853 (patch) | |
tree | 24055fea99a15d8088884a6cffd9dab96e429e6a | |
parent | f83486cd1db68bf4e5b61ad84f5a8b130fe2c482 (diff) |
Add a LibraryInitializer constructor taking a std::string, which simply
calls the InitializerOptions constructor.
-rw-r--r-- | include/init.h | 1 | ||||
-rw-r--r-- | src/init_def.cpp | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h index 82a7fe278..958cddda7 100644 --- a/include/init.h +++ b/include/init.h @@ -35,6 +35,7 @@ class InitializerOptions class LibraryInitializer { public: + LibraryInitializer(const std::string& = ""); LibraryInitializer(const InitializerOptions&); ~LibraryInitializer(); }; diff --git a/src/init_def.cpp b/src/init_def.cpp index 05631127c..31cb89ea7 100644 --- a/src/init_def.cpp +++ b/src/init_def.cpp @@ -17,6 +17,15 @@ namespace Botan { /************************************************* * Library Initialization * *************************************************/ +LibraryInitializer::LibraryInitializer(const std::string& arg_string) + { + InitializerOptions args(arg_string); + Init::initialize(args); + } + +/************************************************* +* Library Initialization * +*************************************************/ LibraryInitializer::LibraryInitializer(const InitializerOptions& args) { Init::initialize(args); |