diff options
author | lloyd <[email protected]> | 2009-09-16 15:35:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-09-16 15:35:45 +0000 |
commit | aaf319491523ae103da2fd459cd94f7018c1cbce (patch) | |
tree | 16a03d3e3589d4faa31fa4af270fc13fca29919e /src/libstate/init.cpp | |
parent | 486165fedeb64bce3fce80939451514a21eb6ae4 (diff) | |
parent | cc8b60c7f5ea6be28848498367645cbccba035e8 (diff) |
propagate from branch 'net.randombit.botan' (head 32f457161b1ad1afb7a3d0ccebc98ada83fb23d9)
to branch 'net.randombit.botan.c++0x' (head 6e3c13869f27636152cf11c65a7d8197a93641d9)
Diffstat (limited to 'src/libstate/init.cpp')
-rw-r--r-- | src/libstate/init.cpp | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/src/libstate/init.cpp b/src/libstate/init.cpp index b908de6c7..0d9a2420c 100644 --- a/src/libstate/init.cpp +++ b/src/libstate/init.cpp @@ -1,12 +1,11 @@ /** * Default Initialization Function -* (C) 1999-2007 Jack Lloyd +* (C) 1999-2009 Jack Lloyd * * Distributed under the terms of the Botan license */ #include <botan/init.h> -#include <botan/parsing.h> #include <botan/libstate.h> namespace Botan { @@ -14,36 +13,8 @@ namespace Botan { /* * Library Initialization */ -void LibraryInitializer::initialize(const std::string& arg_string) +void LibraryInitializer::initialize(const std::string&) { - bool thread_safe = false; - - const std::vector<std::string> arg_list = split_on(arg_string, ' '); - for(u32bit j = 0; j != arg_list.size(); ++j) - { - if(arg_list[j].size() == 0) - continue; - - std::string name, value; - - if(arg_list[j].find('=') == std::string::npos) - { - name = arg_list[j]; - value = "true"; - } - else - { - std::vector<std::string> name_and_value = split_on(arg_list[j], '='); - name = name_and_value[0]; - value = name_and_value[1]; - } - - bool is_on = - (value == "1" || value == "true" || value == "yes" || value == "on"); - - if(name == "thread_safe") - thread_safe = is_on; - } try { @@ -55,7 +26,7 @@ void LibraryInitializer::initialize(const std::string& arg_string) */ set_global_state(new Library_State); - global_state().initialize(thread_safe); + global_state().initialize(); } catch(...) { |