aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_hash.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-09-21 14:59:01 -0400
committerJack Lloyd <[email protected]>2015-09-21 14:59:01 -0400
commit04319af23bf8ed467b17f9b74c814343e051ab6b (patch)
tree630d1a0cc931e77e7e1f07319e5cf89d00af4458 /src/tests/test_hash.cpp
parent408ea0a9b8ed0f575f8ee26891473920b42ef026 (diff)
Remove use of lookup.h in favor of new T::create API.
Diffstat (limited to 'src/tests/test_hash.cpp')
-rw-r--r--src/tests/test_hash.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/test_hash.cpp b/src/tests/test_hash.cpp
index a69ba3ef3..d37a9dc14 100644
--- a/src/tests/test_hash.cpp
+++ b/src/tests/test_hash.cpp
@@ -6,7 +6,6 @@
#include "tests.h"
-#include <botan/lookup.h>
#include <botan/hash.h>
#include <botan/hex.h>
#include <iostream>
@@ -22,7 +21,7 @@ size_t hash_test(const std::string& algo,
{
size_t fails = 0;
- const std::vector<std::string> providers = get_hash_function_providers(algo);
+ const std::vector<std::string> providers = HashFunction::providers(algo);
if(providers.empty())
{
@@ -32,7 +31,7 @@ size_t hash_test(const std::string& algo,
for(auto provider: providers)
{
- std::unique_ptr<HashFunction> hash(get_hash(algo, provider));
+ std::unique_ptr<HashFunction> hash(HashFunction::create(algo, provider));
if(!hash)
{