diff options
author | lloyd <[email protected]> | 2011-05-17 13:00:26 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-05-17 13:00:26 +0000 |
commit | e6d4bee20f480b6bd0dd1c01fde491529dac10cc (patch) | |
tree | 27a3b5fe663ca6ed0dbeb6942e85562fc168cc43 | |
parent | 610a3e91b5be1008c5cd314d67fb997fd03c0268 (diff) |
Fix building the tests when ECC is turned off.
-rw-r--r-- | checks/ec_tests.cpp | 15 |
1 files 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 <botan/build.h> +#include <botan/rng.h> + +#if defined(BOTAN_HAS_ECC_GROUP) + #include <botan/bigint.h> #include <botan/numthry.h> #include <botan/curve_gfp.h> #include <botan/point_gfp.h> -#include <botan/ecdsa.h> +#include <botan/ec_group.h> #include <botan/oids.h> 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 |