aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2018-01-11 10:49:52 +0100
committerSimon Warta <[email protected]>2018-01-11 10:49:52 +0100
commitaee4203df5d1b7437fccd0b134ce8190daea0cd0 (patch)
tree8c282429a7f624e5a912f067a6ff8593dbd36ecf
parent0c6e3f7d048c207218e479f95d83d1df09c06787 (diff)
Wrap use of MAC in BOTAN_HAS_MAC in lookup.h
-rw-r--r--src/lib/base/lookup.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/base/lookup.h b/src/lib/base/lookup.h
index 808848d37..18c885d16 100644
--- a/src/lib/base/lookup.h
+++ b/src/lib/base/lookup.h
@@ -8,15 +8,19 @@
#ifndef BOTAN_LOOKUP_H_
#define BOTAN_LOOKUP_H_
+#include <botan/build.h>
#include <botan/block_cipher.h>
#include <botan/stream_cipher.h>
#include <botan/hash.h>
-#include <botan/mac.h>
#include <botan/exceptn.h>
#include <string>
#include <vector>
#include <memory>
+#if defined(BOTAN_HAS_MAC)
+ #include <botan/mac.h>
+#endif
+
namespace Botan {
/*
@@ -118,6 +122,7 @@ inline std::vector<std::string> get_hash_function_providers(const std::string& a
return HashFunction::providers(algo_spec);
}
+#if defined(BOTAN_HAS_MAC)
/**
* MAC factory method.
*
@@ -144,6 +149,7 @@ inline std::vector<std::string> get_mac_providers(const std::string& algo_spec)
{
return MessageAuthenticationCode::providers(algo_spec);
}
+#endif
}