aboutsummaryrefslogtreecommitdiffstats
path: root/src/algo_factory/algo_factory.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-24 13:52:11 +0000
committerlloyd <[email protected]>2010-03-24 13:52:11 +0000
commit550dc44e247dfb5a8cbac0afcfc065fb6990c386 (patch)
tree58eaff59749bfd9130e8de811f5d7f5a036b06d1 /src/algo_factory/algo_factory.h
parent24aba24f73f1717548b82f1d6bf8e4f773afa015 (diff)
Allow adding engines dynamically
Diffstat (limited to 'src/algo_factory/algo_factory.h')
-rw-r--r--src/algo_factory/algo_factory.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/algo_factory/algo_factory.h b/src/algo_factory/algo_factory.h
index 3b479c2d7..0b630c721 100644
--- a/src/algo_factory/algo_factory.h
+++ b/src/algo_factory/algo_factory.h
@@ -35,11 +35,9 @@ class BOTAN_DLL Algorithm_Factory
public:
/**
* Constructor
- * @param engines_in the list of engines to use
* @param mf a mutex factory
*/
- Algorithm_Factory(const std::vector<Engine*>& engines_in,
- Mutex_Factory& mf);
+ Algorithm_Factory(Mutex_Factory& mf);
/**
* Destructor
@@ -47,6 +45,11 @@ class BOTAN_DLL Algorithm_Factory
~Algorithm_Factory();
/**
+ * @param engine to add (Algorithm_Factory takes ownership)
+ */
+ void add_engine(class Engine* engine);
+
+ /**
* @param algo_spec the algorithm we are querying
* @returns list of providers of this algorithm
*/