aboutsummaryrefslogtreecommitdiffstats
path: root/src/algo_factory
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-13 19:45:56 +0000
committerlloyd <[email protected]>2009-10-13 19:45:56 +0000
commit0b23f4071f21564fb63d7b11768070658c4b8f77 (patch)
tree7a58ce797eda43cc2e1379975189baea1c85be83 /src/algo_factory
parent9268a0455a07d31a66364aa5b7594bd75250b466 (diff)
Check for cipher_mode() being set; if it is, not an algo_factory algo
Diffstat (limited to 'src/algo_factory')
-rw-r--r--src/algo_factory/algo_factory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/algo_factory/algo_factory.cpp b/src/algo_factory/algo_factory.cpp
index 3523b19d4..22915d97c 100644
--- a/src/algo_factory/algo_factory.cpp
+++ b/src/algo_factory/algo_factory.cpp
@@ -62,6 +62,10 @@ const T* factory_prototype(const std::string& algo_spec,
return cache_hit;
SCAN_Name scan_name(algo_spec);
+
+ if(scan_name.cipher_mode() != "")
+ return 0;
+
for(u32bit i = 0; i != engines.size(); ++i)
{
if(provider == "" || engines[i]->provider_name() == provider)