From 2af6c4499013911d7b01ce3ce1acc5aa8fef15ab Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 11 Nov 2008 19:20:32 +0000 Subject: Move most of the remaining libstate code to pk_engine.cpp, move engines back to the toplevel since most othe dependencies have been removed now (except get_cipher which still needs changes) --- src/algo_factory/algo_cache.h | 8 ++++---- src/algo_factory/algo_factory.cpp | 2 -- src/algo_factory/algo_factory.h | 2 -- 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src/algo_factory') diff --git a/src/algo_factory/algo_cache.h b/src/algo_factory/algo_cache.h index dafa59c3e..a77828718 100644 --- a/src/algo_factory/algo_cache.h +++ b/src/algo_factory/algo_cache.h @@ -7,12 +7,14 @@ #include #include -#include -#include #include +#include namespace Botan { +/** +* Algorithm_Cache (used by Algorithm_Factory) +*/ template class Algorithm_Cache { @@ -35,7 +37,6 @@ class Algorithm_Cache Mutex* mutex; std::map aliases; std::map > algorithms; - }; /** @@ -84,7 +85,6 @@ const T* Algorithm_Cache::get(const SCAN_Name& request) } else // no specific provider requested: pick one { - printf("No specific provider requested for %s\n", request.as_string().c_str()); provider_iterator provider = algo->second.begin(); while(provider != algo->second.end()) diff --git a/src/algo_factory/algo_factory.cpp b/src/algo_factory/algo_factory.cpp index e2debf7c9..e30d6d98b 100644 --- a/src/algo_factory/algo_factory.cpp +++ b/src/algo_factory/algo_factory.cpp @@ -18,7 +18,6 @@ Algorithm Factory namespace Botan { Algorithm_Factory::Algorithm_Factory(Mutex_Factory& mf) : - mutex_factory(mf), block_cipher_cache(mf.make()), stream_cipher_cache(mf.make()), hash_cache(mf.make()), @@ -41,7 +40,6 @@ Algorithm_Factory::~Algorithm_Factory() */ void Algorithm_Factory::add_engine(Engine* engine) { - engine->initialize(mutex_factory); engines.insert(engines.begin(), engine); } diff --git a/src/algo_factory/algo_factory.h b/src/algo_factory/algo_factory.h index 64b2128ec..07a8c93f1 100644 --- a/src/algo_factory/algo_factory.h +++ b/src/algo_factory/algo_factory.h @@ -68,8 +68,6 @@ class BOTAN_DLL Algorithm_Factory void add_mac(MessageAuthenticationCode* mac, const std::string& provider); private: - Mutex_Factory& mutex_factory; - class Engine* get_engine_n(u32bit) const; std::vector engines; -- cgit v1.2.3