aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-17 18:33:48 +0000
committerlloyd <[email protected]>2008-11-17 18:33:48 +0000
commited7285a54ddc4d6f779cea9e3e46e1e678b3b636 (patch)
tree88e28b685416043222816c4e9748ae9173440c55 /checks
parentfb9960c0f51b23282e250b9e08fc12926d076c2d (diff)
Disable ec_tests.cpp unless ECDSA is enabled
Diffstat (limited to 'checks')
-rw-r--r--checks/ec_tests.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/checks/ec_tests.cpp b/checks/ec_tests.cpp
index 043454b51..2d25e2153 100644
--- a/checks/ec_tests.cpp
+++ b/checks/ec_tests.cpp
@@ -1,3 +1,13 @@
+
+#include <botan/build.h>
+#include "validate.h"
+
+#if !defined(BOTAN_HAS_ECDSA)
+
+void do_ec_tests(RandomNumberGenerator&) { return; }
+
+#else
+
#include <botan/bigint.h>
#include <botan/numthry.h>
#include <botan/mp_types.h>
@@ -12,8 +22,8 @@ using namespace Botan;
#include <assert.h>
#include "getopt.h"
+
#include "common.h"
-#include "validate.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"; }
@@ -1209,3 +1219,5 @@ void do_ec_tests(RandomNumberGenerator& rng)
std::cout << std::endl;
}
+#endif
+