aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-13 19:49:35 +0000
committerlloyd <[email protected]>2009-10-13 19:49:35 +0000
commita61f24e27bba172300eaafffb10d5ebeafb6a592 (patch)
tree2f280bc79a16de538a9c37772ecfa134f84b6ce8
parent1860316d9832cc0f93d93ff6fcb0059c92c07383 (diff)
parent0b23f4071f21564fb63d7b11768070658c4b8f77 (diff)
propagate from branch 'net.randombit.botan' (head d2bced090807e3590304d38724d37f90ac870f1d)
to branch 'net.randombit.botan.c++0x' (head 21baae4d88e0b1bc4e127d129b8ca730e8fa3e46)
-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 e891dc5cd..192d5ecdd 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)