aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_mac.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_mac.cpp
parent408ea0a9b8ed0f575f8ee26891473920b42ef026 (diff)
Remove use of lookup.h in favor of new T::create API.
Diffstat (limited to 'src/tests/test_mac.cpp')
-rw-r--r--src/tests/test_mac.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/test_mac.cpp b/src/tests/test_mac.cpp
index 6ab87274f..4009a6c4d 100644
--- a/src/tests/test_mac.cpp
+++ b/src/tests/test_mac.cpp
@@ -8,7 +8,6 @@
#if defined(BOTAN_HAS_MAC)
-#include <botan/lookup.h>
#include <botan/mac.h>
#include <botan/hex.h>
#include <iostream>
@@ -23,7 +22,7 @@ size_t mac_test(const std::string& algo,
const std::string& in_hex,
const std::string& out_hex)
{
- const std::vector<std::string> providers = get_mac_providers(algo);
+ const std::vector<std::string> providers = MessageAuthenticationCode::providers(algo);
size_t fails = 0;
if(providers.empty())
@@ -34,7 +33,7 @@ size_t mac_test(const std::string& algo,
for(auto provider: providers)
{
- std::unique_ptr<MessageAuthenticationCode> mac(get_mac(algo, provider));
+ std::unique_ptr<MessageAuthenticationCode> mac(MessageAuthenticationCode::create(algo, provider));
if(!mac)
{