diff options
author | Simon Warta <[email protected]> | 2015-06-26 20:20:32 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-07-03 10:33:45 +0200 |
commit | f472b8fc61accbbaa6a36af9d2d20b0fde37a1a2 (patch) | |
tree | 8e71c24da6f7f5b037024741105ca392369e590a /src/tests/unit_ecdsa.cpp | |
parent | cd9037e29f32197b9c37ef7bec955ac2372b543b (diff) |
Make Botan compile when only some modules are enabled
Fixes #146.
Diffstat (limited to 'src/tests/unit_ecdsa.cpp')
-rw-r--r-- | src/tests/unit_ecdsa.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/tests/unit_ecdsa.cpp b/src/tests/unit_ecdsa.cpp index 432fc22bd..53d12aeb7 100644 --- a/src/tests/unit_ecdsa.cpp +++ b/src/tests/unit_ecdsa.cpp @@ -11,15 +11,18 @@ #include "tests.h" #if defined(BOTAN_HAS_ECDSA) -#include <botan/hex.h> +#if defined(BOTAN_HAS_RSA) + +#include <botan/hex.h> #include <botan/pubkey.h> #include <botan/ecdsa.h> #include <botan/rsa.h> +#include <botan/oids.h> + #if defined(BOTAN_HAS_X509_CERTIFICATES) #include <botan/x509cert.h> #endif -#include <botan/oids.h> #include <iostream> #include <fstream> @@ -493,6 +496,12 @@ size_t test_ecdsa_unit() #else -size_t test_ecdsa_unit() { return 0; } +UNTESTED_WARNING(ecdsa_unit); -#endif +#endif // BOTAN_HAS_RSA + +#else + +SKIP_TEST(ecdsa_unit); + +#endif // BOTAN_HAS_ECDSA |