aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/lookup.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstate/lookup.cpp b/src/libstate/lookup.cpp
index 24a8a8ecd..adf3d80ed 100644
--- a/src/libstate/lookup.cpp
+++ b/src/libstate/lookup.cpp
@@ -249,11 +249,13 @@ u32bit keylength_multiple_of(const std::string& name)
Keyed_Filter* get_cipher(const std::string& algo_spec,
Cipher_Dir direction)
{
- Algorithm_Factory::Engine_Iterator i(global_state().algorithm_factory());
+ Algorithm_Factory& af = global_state().algorithm_factory();
+
+ Algorithm_Factory::Engine_Iterator i(af);
while(Engine* engine = i.next())
{
- Keyed_Filter* algo = engine->get_cipher(algo_spec, direction);
+ Keyed_Filter* algo = engine->get_cipher(algo_spec, direction, af);
if(algo)
return algo;
}