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/test_dsa.cpp | |
parent | cd9037e29f32197b9c37ef7bec955ac2372b543b (diff) |
Make Botan compile when only some modules are enabled
Fixes #146.
Diffstat (limited to 'src/tests/test_dsa.cpp')
-rw-r--r-- | src/tests/test_dsa.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tests/test_dsa.cpp b/src/tests/test_dsa.cpp index b31bda9fe..9ce496d80 100644 --- a/src/tests/test_dsa.cpp +++ b/src/tests/test_dsa.cpp @@ -5,10 +5,10 @@ */ #include "tests.h" -#include "test_pubkey.h" #if defined(BOTAN_HAS_DSA) +#include "test_pubkey.h" #include <botan/pubkey.h> #include <botan/dsa.h> @@ -47,13 +47,11 @@ size_t dsa_sig_kat(const std::string& p, } } -#endif size_t test_dsa() { size_t fails = 0; -#if defined(BOTAN_HAS_DSA) std::ifstream dsa_sig(PK_TEST_DATA_DIR "/dsa.vec"); fails += run_tests_bb(dsa_sig, "DSA Signature", "Signature", false, @@ -61,8 +59,12 @@ size_t test_dsa() { return dsa_sig_kat(m["P"], m["Q"], m["G"], m["X"], m["Hash"], m["Msg"], m["Nonce"], m["Signature"]); }); -#endif return fails; } +#else + +SKIP_TEST(dsa); + +#endif // BOTAN_HAS_DSA |