diff options
author | lloyd <[email protected]> | 2009-10-13 19:45:56 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-10-13 19:45:56 +0000 |
commit | 0b23f4071f21564fb63d7b11768070658c4b8f77 (patch) | |
tree | 7a58ce797eda43cc2e1379975189baea1c85be83 | |
parent | 9268a0455a07d31a66364aa5b7594bd75250b466 (diff) |
Check for cipher_mode() being set; if it is, not an algo_factory algo
-rw-r--r-- | src/algo_factory/algo_factory.cpp | 4 |
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) |