aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-12 20:03:19 +0000
committerlloyd <[email protected]>2008-11-12 20:03:19 +0000
commit6fae566aaa725f3a58413ff7adbcb55a04ac571b (patch)
treef14025c85dd52a4a21ce49941b23994873df6e3d /src/engine
parent81ff0b8715fabb3014bab4216192330f1c85fffe (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/engine')
-rw-r--r--src/engine/def_engine/def_mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/def_engine/def_mode.cpp b/src/engine/def_engine/def_mode.cpp
index 7933fbb84..a2015e6d3 100644
--- a/src/engine/def_engine/def_mode.cpp
+++ b/src/engine/def_engine/def_mode.cpp
@@ -80,7 +80,7 @@ Keyed_Filter* Default_Engine::get_cipher(const std::string& algo_spec,
const std::string cipher_name = algo_parts[0];
- Algorithm_Factory& af = global_state().algo_factory();
+ Algorithm_Factory& af = global_state().algorithm_factory();
// check if it is a stream cipher first (easy case)
const StreamCipher* stream_cipher = af.prototype_stream_cipher(cipher_name);