diff options
author | lloyd <[email protected]> | 2008-06-30 02:11:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-30 02:11:06 +0000 |
commit | 449eba1b6026d1271aacd41b58c7459d46099566 (patch) | |
tree | 89d722f86da80147e2653d8f85c4eeaf33061288 /src/libstate.cpp | |
parent | cf713b974185b2bb2a51dc7fc009658fcc2ff401 (diff) |
Remove global_config() - replace by direct calls to global_state()
Diffstat (limited to 'src/libstate.cpp')
-rw-r--r-- | src/libstate.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libstate.cpp b/src/libstate.cpp index 8b1e04cdb..d0848b52d 100644 --- a/src/libstate.cpp +++ b/src/libstate.cpp @@ -1,6 +1,6 @@ /************************************************* * Library Internal/Global State Source File * -* (C) 1999-2007 Jack Lloyd * +* (C) 1999-2008 Jack Lloyd * *************************************************/ #include <botan/libstate.h> @@ -143,7 +143,7 @@ void Library_State::add_engine(Engine* engine) } /************************************************* -* Set the configuration object * +* Get the configuration object * *************************************************/ Config& Library_State::config() const { @@ -157,6 +157,14 @@ Config& Library_State::config() const } /************************************************* +* Set the configuration object * +*************************************************/ +std::string Library_State::option(const std::string& name) const + { + return config().option(name); + } + +/************************************************* * Load a set of modules * *************************************************/ void Library_State::initialize(const InitializerOptions& args, |