aboutsummaryrefslogtreecommitdiffstats
path: root/src/algo_factory/algo_factory.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-11 02:20:57 +0000
committerlloyd <[email protected]>2008-11-11 02:20:57 +0000
commit507b1b0996b3640c038d236f60ea86ee6315aeb4 (patch)
tree18073171e522ca1f5a7046b4b5959b606adfa763 /src/algo_factory/algo_factory.h
parentdaffc235589fb8ec2f4090ba5fb8511462b4a843 (diff)
Remove a global_state() dependency on Engine without breaking Monotone
via two-stage initialization.
Diffstat (limited to 'src/algo_factory/algo_factory.h')
-rw-r--r--src/algo_factory/algo_factory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/algo_factory/algo_factory.h b/src/algo_factory/algo_factory.h
index fb41b4882..f29683b79 100644
--- a/src/algo_factory/algo_factory.h
+++ b/src/algo_factory/algo_factory.h
@@ -24,6 +24,7 @@ class MessageAuthenticationCode;
class BOTAN_DLL Algorithm_Factory
{
public:
+ Algorithm_Factory(Mutex_Factory& mf) : mutex_factory(mf) {}
~Algorithm_Factory();
void add_engine(class Engine*);
@@ -62,6 +63,8 @@ class BOTAN_DLL Algorithm_Factory
void add_mac(MessageAuthenticationCode* mac);
private:
+ Mutex_Factory& mutex_factory;
+
class Engine* get_engine_n(u32bit) const;
std::vector<class Engine*> engines;