From e6d4bee20f480b6bd0dd1c01fde491529dac10cc Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 17 May 2011 13:00:26 +0000 Subject: Fix building the tests when ECC is turned off. --- checks/ec_tests.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/checks/ec_tests.cpp b/checks/ec_tests.cpp index bad0d8912..df17f672b 100644 --- a/checks/ec_tests.cpp +++ b/checks/ec_tests.cpp @@ -5,12 +5,15 @@ */ -#include +#include + +#if defined(BOTAN_HAS_ECC_GROUP) + #include #include #include #include -#include +#include #include using namespace Botan; @@ -22,6 +25,7 @@ using namespace Botan; #include "validate.h" #include "common.h" + #define CHECK_MESSAGE(expr, print) try { if(!(expr)) std::cout << print << "\n"; } catch(std::exception& e) { std::cout << __FUNCTION__ << ": " << e.what() << "\n"; } #define CHECK(expr) try { if(!(expr)) std::cout << #expr << "\n"; } catch(std::exception& e) { std::cout << __FUNCTION__ << ": " << e.what() << "\n"; } @@ -813,3 +817,10 @@ void do_ec_tests(RandomNumberGenerator& rng) std::cout << std::endl; } +#else + +void do_ec_tests(Botan::RandomNumberGenerator& rng) + { + } + +#endif -- cgit v1.2.3