From 3785deadff522923299c34bcd2ba364c02abbf0c Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 24 Sep 2017 13:04:08 -0400 Subject: Further build/test fixes for restricted configurations --- src/tests/test_mceliece.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/tests/test_mceliece.cpp') diff --git a/src/tests/test_mceliece.cpp b/src/tests/test_mceliece.cpp index 7f27e844b..bcc467344 100644 --- a/src/tests/test_mceliece.cpp +++ b/src/tests/test_mceliece.cpp @@ -32,7 +32,7 @@ namespace { #if defined(BOTAN_HAS_MCELIECE) -#if defined(BOTAN_HAS_HMAC_DRBG) +#if defined(BOTAN_HAS_HMAC_DRBG) && defined(BOTAN_HAS_SHA2_32) && defined(BOTAN_HASH_SHA2_64) class McEliece_Keygen_Encrypt_Test final : public Text_Based_Test { public: @@ -117,6 +117,9 @@ class McEliece_Keygen_Encrypt_Test final : public Text_Based_Test BOTAN_REGISTER_TEST("mce_keygen", McEliece_Keygen_Encrypt_Test); #endif + +#if defined(BOTAN_HAS_SHA2_32) + class McEliece_Tests final : public Test { public: @@ -190,7 +193,9 @@ class McEliece_Tests final : public Test results.push_back(result); +#if defined(BOTAN_HAS_KDF2) results.push_back(test_kem(sk, pk)); +#endif #if defined(BOTAN_HAS_MCEIES) results.push_back(test_mceies(sk, pk)); @@ -280,6 +285,8 @@ BOTAN_REGISTER_TEST("mceliece", McEliece_Tests); #endif +#endif + } } -- cgit v1.2.3