diff options
Diffstat (limited to 'src/tests/unit_ecdh.cpp')
-rw-r--r-- | src/tests/unit_ecdh.cpp | 9 |
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 |