aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/algo_factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate/algo_factory.cpp')
-rw-r--r--src/libstate/algo_factory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstate/algo_factory.cpp b/src/libstate/algo_factory.cpp
index c7f10a68a..cbb3c8faa 100644
--- a/src/libstate/algo_factory.cpp
+++ b/src/libstate/algo_factory.cpp
@@ -6,6 +6,7 @@ Algorithm Factory
#include <botan/libstate.h>
#include <botan/stl_util.h>
#include <botan/engine.h>
+#include <botan/exceptn.h>
#include <algorithm>
namespace Botan {
@@ -66,7 +67,8 @@ HashFunction* Algorithm_Factory::make_hash_function(const SCAN_Name& request)
const HashFunction* prototype = prototype_hash_function(request);
if(prototype)
return prototype->clone();
- return 0;
+
+ throw Algorithm_Not_Found(request.as_string());
}
}