diff options
author | lloyd <[email protected]> | 2014-02-08 16:01:49 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-02-08 16:01:49 +0000 |
commit | 93c361028df3e33b9f6195f7d4b9ffcf47a7fa2c (patch) | |
tree | 3fdc838b34dc937ef280899f89aa10a47e005f30 /src/tests/unit_ecdh.cpp | |
parent | 7def8d303e3cf0f1a27ee8ebcb8ae5137261a361 (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.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 |