diff options
author | lloyd <[email protected]> | 2008-11-12 20:03:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-12 20:03:19 +0000 |
commit | 6fae566aaa725f3a58413ff7adbcb55a04ac571b (patch) | |
tree | f14025c85dd52a4a21ce49941b23994873df6e3d /src/libstate/lookup.h | |
parent | 81ff0b8715fabb3014bab4216192330f1c85fffe (diff) |
Library_State had two functions that did the same thing,
algo_factory and algorithm_factory. This is confusing
so for consistency/simplicity, remove algo_factory, making
algorithm_factory the function to call.
In 1.7.14, several functions in lookup.h, including
retrieve_block_cipher, retrieve_hash, etc were changed to accept
a Library_State& reference. However it turns out with the
modified design I've settled upon for 1.8 that it is not
necessary to change those interfaces; instead they always refer
to the global_state algorithm factory which is exactly the
semantics one would expect/desire 99% of the time (and is source
compatible with code written for 1.6, also a plus)
Diffstat (limited to 'src/libstate/lookup.h')
-rw-r--r-- | src/libstate/lookup.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libstate/lookup.h b/src/libstate/lookup.h index ec7932338..60575aa7f 100644 --- a/src/libstate/lookup.h +++ b/src/libstate/lookup.h @@ -20,8 +20,6 @@ namespace Botan { -class Library_State; - /************************************************* * Retrieve an object from the lookup table * *************************************************/ @@ -29,16 +27,16 @@ class Library_State; // retains ownership BOTAN_DLL const BlockCipher* -retrieve_block_cipher(Library_State&, const std::string&); +retrieve_block_cipher(const std::string&); BOTAN_DLL const StreamCipher* -retrieve_stream_cipher(Library_State&, const std::string&); +retrieve_stream_cipher(const std::string&); BOTAN_DLL const HashFunction* -retrieve_hash(Library_State&, const std::string&); +retrieve_hash(const std::string&); BOTAN_DLL const MessageAuthenticationCode* -retrieve_mac(Library_State&, const std::string&); +retrieve_mac(const std::string&); /************************************************* * Get an algorithm object * |