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/libstate.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/libstate.h')
-rw-r--r-- | src/libstate/libstate.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstate/libstate.h b/src/libstate/libstate.h index ac500b42f..53a70a636 100644 --- a/src/libstate/libstate.h +++ b/src/libstate/libstate.h @@ -27,8 +27,7 @@ class BOTAN_DLL Library_State void initialize(bool thread_safe); - Algorithm_Factory& algo_factory(); - Algorithm_Factory& algorithm_factory() { return algo_factory(); } + Algorithm_Factory& algorithm_factory(); void add_engine(class Engine*); |