From f472b8fc61accbbaa6a36af9d2d20b0fde37a1a2 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 26 Jun 2015 20:20:32 +0200 Subject: Make Botan compile when only some modules are enabled Fixes #146. --- src/tests/test_cvc.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/tests/test_cvc.cpp') diff --git a/src/tests/test_cvc.cpp b/src/tests/test_cvc.cpp index 9b11dea7c..f25775852 100644 --- a/src/tests/test_cvc.cpp +++ b/src/tests/test_cvc.cpp @@ -8,10 +8,11 @@ */ #include "tests.h" -#include #if defined(BOTAN_HAS_CARD_VERIFIABLE_CERTIFICATES) +#if defined(BOTAN_HAS_ECDSA) && defined(BOTAN_HAS_RSA) + #include #include #include @@ -571,6 +572,15 @@ size_t test_cvc() return 0; } + +#else + +UNTESTED_WARNING(cvc); + +#endif // BOTAN_HAS_ECDSA && BOTAN_HAS_RSA + #else -size_t test_cvc() { return 0; } -#endif + +SKIP_TEST(cvc); + +#endif // BOTAN_HAS_CARD_VERIFIABLE_CERTIFICATES -- cgit v1.2.3