aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-12 19:31:33 +0000
committerlloyd <[email protected]>2008-11-12 19:31:33 +0000
commit5f0aec7df70287f33001db4b59f63ad0904206bb (patch)
tree7075247b0e8e82ab30cd9a01b38b6f7701c96c24
parent48b1f0d6b7d26eaa9feff0f61617a103e62a2265 (diff)
Revert 2707eb68cb91e0633815a6d6c68d22b9f41227a4 - I had forgotten that
Engine_Iterator (and thus the public key engine code) still processes in order of first engine to last in the list. Benchmarking confirmed that GNU MP is still faster than both OpenSSL and Botan for public key operations (at least on my machine).
-rw-r--r--src/algo_factory/algo_factory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algo_factory/algo_factory.cpp b/src/algo_factory/algo_factory.cpp
index 5b300b7c6..8cd7d70ff 100644
--- a/src/algo_factory/algo_factory.cpp
+++ b/src/algo_factory/algo_factory.cpp
@@ -42,7 +42,7 @@ Algorithm_Factory::~Algorithm_Factory()
*/
void Algorithm_Factory::add_engine(Engine* engine)
{
- engines.push_back(engine);
+ engines.insert(engines.begin(), engine);
}
/**