aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstate/libstate.cpp8
-rw-r--r--src/libstate/libstate.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp
index c4d81de7a..7c3105752 100644
--- a/src/libstate/libstate.cpp
+++ b/src/libstate/libstate.cpp
@@ -284,6 +284,14 @@ void Library_State::initialize(bool thread_safe)
algorithm_factory->add_engine(new Default_Engine);
}
+/**
+* Add a new engine
+*/
+void Library_State::add_engine(Engine* engine)
+ {
+ algorithm_factory->add_engine(engine);
+ }
+
/*************************************************
* Library_State Constructor *
*************************************************/
diff --git a/src/libstate/libstate.h b/src/libstate/libstate.h
index b5881dc62..3ca97a53c 100644
--- a/src/libstate/libstate.h
+++ b/src/libstate/libstate.h
@@ -29,6 +29,8 @@ class BOTAN_DLL Library_State
Algorithm_Factory& algo_factory();
+ void add_engine(class Engine*);
+
Allocator* get_allocator(const std::string& = "") const;
void add_allocator(Allocator*);
void set_default_allocator(const std::string&);