diff options
author | Jack Lloyd <[email protected]> | 2018-01-12 10:35:55 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-12 11:34:29 -0500 |
commit | 2031badab44efad536509ac4c0c2f3ea1928de0a (patch) | |
tree | eb7cc8239223d7507863000bcdad8440b8c6b32b /src/tests | |
parent | aee4203df5d1b7437fccd0b134ce8190daea0cd0 (diff) |
Make stream, block, hash and cipher mode base classes optional
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_block.cpp | 5 | ||||
-rw-r--r-- | src/tests/test_hash.cpp | 8 | ||||
-rw-r--r-- | src/tests/test_otp.cpp | 3 | ||||
-rw-r--r-- | src/tests/test_rfc6979.cpp | 3 |
4 files changed, 15 insertions, 4 deletions
diff --git a/src/tests/test_block.cpp b/src/tests/test_block.cpp index 02115b66a..a274b260b 100644 --- a/src/tests/test_block.cpp +++ b/src/tests/test_block.cpp @@ -5,6 +5,9 @@ */ #include "tests.h" + +#if defined(BOTAN_HAS_BLOCK_CIPHER) + #include <botan/block_cipher.h> namespace Botan_Tests { @@ -144,3 +147,5 @@ class Block_Cipher_Tests final : public Text_Based_Test BOTAN_REGISTER_TEST("block", Block_Cipher_Tests); } + +#endif diff --git a/src/tests/test_hash.cpp b/src/tests/test_hash.cpp index 39b13de32..0424e94f3 100644 --- a/src/tests/test_hash.cpp +++ b/src/tests/test_hash.cpp @@ -6,10 +6,14 @@ #include "tests.h" -#include <botan/hash.h> +#if defined(BOTAN_HAS_HASH) + #include <botan/hash.h> +#endif namespace Botan_Tests { +#if defined(BOTAN_HAS_HASH) + namespace { class Hash_Function_Tests final : public Text_Based_Test @@ -109,4 +113,6 @@ BOTAN_REGISTER_TEST("hash", Hash_Function_Tests); } +#endif + } diff --git a/src/tests/test_otp.cpp b/src/tests/test_otp.cpp index 9bd4c0f18..4604356f9 100644 --- a/src/tests/test_otp.cpp +++ b/src/tests/test_otp.cpp @@ -6,16 +6,17 @@ */ #include "tests.h" -#include <botan/hash.h> #if defined(BOTAN_HAS_HOTP) #include <botan/parsing.h> #include <botan/hotp.h> + #include <botan/hash.h> #endif #if defined(BOTAN_HAS_TOTP) #include <botan/totp.h> #include <botan/calendar.h> + #include <botan/hash.h> #endif namespace Botan_Tests { diff --git a/src/tests/test_rfc6979.cpp b/src/tests/test_rfc6979.cpp index 8b8af434f..b9de7fcb9 100644 --- a/src/tests/test_rfc6979.cpp +++ b/src/tests/test_rfc6979.cpp @@ -8,10 +8,9 @@ #if defined(BOTAN_HAS_RFC6979_GENERATOR) #include <botan/rfc6979.h> + #include <botan/hash.h> #endif -#include <botan/hash.h> - namespace Botan_Tests { namespace { |