aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-07-12 06:20:58 +0000
committerlloyd <[email protected]>2006-07-12 06:20:58 +0000
commit861c01037180b83a2c28764d02930dda90191853 (patch)
tree24055fea99a15d8088884a6cffd9dab96e429e6a
parentf83486cd1db68bf4e5b61ad84f5a8b130fe2c482 (diff)
Add a LibraryInitializer constructor taking a std::string, which simply
calls the InitializerOptions constructor.
-rw-r--r--include/init.h1
-rw-r--r--src/init_def.cpp9
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);