aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecdh.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-08 16:01:49 +0000
committerlloyd <[email protected]>2014-02-08 16:01:49 +0000
commit93c361028df3e33b9f6195f7d4b9ffcf47a7fa2c (patch)
tree3fdc838b34dc937ef280899f89aa10a47e005f30 /src/tests/unit_ecdh.cpp
parent7def8d303e3cf0f1a27ee8ebcb8ae5137261a361 (diff)
Fix minimized builds. Patch by Markus Wanner sent to botan-devel
Diffstat (limited to 'src/tests/unit_ecdh.cpp')
-rw-r--r--src/tests/unit_ecdh.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/unit_ecdh.cpp b/src/tests/unit_ecdh.cpp
index 2c6857d3b..81e2e8fab 100644
--- a/src/tests/unit_ecdh.cpp
+++ b/src/tests/unit_ecdh.cpp
@@ -9,13 +9,16 @@
#include "tests.h"
+#if defined(BOTAN_HAS_ECDH)
#include <iostream>
#include <fstream>
#include <botan/auto_rng.h>
#include <botan/pubkey.h>
#include <botan/ecdh.h>
+#if defined(BOTAN_HAS_X509_CERTIFICATES)
#include <botan/x509self.h>
+#endif
#include <botan/der_enc.h>
using namespace Botan;
@@ -130,3 +133,9 @@ size_t test_ecdh_unit()
return fails;
}
+
+#else
+
+size_t test_ecdh_unit() { return 0; }
+
+#endif