aboutsummaryrefslogtreecommitdiffstats
path: root/src/algo_factory
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-11 21:43:39 +0000
committerlloyd <[email protected]>2008-11-11 21:43:39 +0000
commitb42394d4aad88619d63c09e5a324abd9d3c3833b (patch)
treed3f8d63cd9260ed9c8e4b4695f4847303e000f74 /src/algo_factory
parentefd9ee465b5bfe0eba94ac8a3e062f146b4a8383 (diff)
Process engines in order of addition instead of backwards
Diffstat (limited to 'src/algo_factory')
-rw-r--r--src/algo_factory/algo_factory.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/algo_factory/algo_factory.cpp b/src/algo_factory/algo_factory.cpp
index e69b85b15..0756d02d8 100644
--- a/src/algo_factory/algo_factory.cpp
+++ b/src/algo_factory/algo_factory.cpp
@@ -17,13 +17,15 @@ Algorithm Factory
namespace Botan {
+/**
+* Setup caches
+*/
Algorithm_Factory::Algorithm_Factory(Mutex_Factory& mf) :
block_cipher_cache(mf.make()),
stream_cipher_cache(mf.make()),
hash_cache(mf.make()),
mac_cache(mf.make())
{
-
}
/**
@@ -36,11 +38,11 @@ Algorithm_Factory::~Algorithm_Factory()
}
/**
-* Add a new engine to the list
+* Add a new engine to the search list
*/
void Algorithm_Factory::add_engine(Engine* engine)
{
- engines.insert(engines.begin(), engine);
+ engines.push_back(engine);
}
/*************************************************