diff options
author | lloyd <[email protected]> | 2014-02-09 16:52:51 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-02-09 16:52:51 +0000 |
commit | 4f3b0ce8fccd879791d5a701102ee0737f3509b1 (patch) | |
tree | 37ab6f550154de465d2677fdab1cc1d96904fa5c /src/tests/test_dsa.cpp | |
parent | 253aa701ffa654af3c880e1e1b4965fabf86be3b (diff) |
More fixes for minified builds
Diffstat (limited to 'src/tests/test_dsa.cpp')
-rw-r--r-- | src/tests/test_dsa.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tests/test_dsa.cpp b/src/tests/test_dsa.cpp index 19c557823..16f03fcc0 100644 --- a/src/tests/test_dsa.cpp +++ b/src/tests/test_dsa.cpp @@ -1,6 +1,8 @@ #include "tests.h" #include "test_pubkey.h" +#if defined(BOTAN_HAS_DSA) + #include <botan/auto_rng.h> #include <botan/pubkey.h> #include <botan/dsa.h> @@ -39,18 +41,21 @@ size_t dsa_sig_kat(const std::string& p, } } +#endif size_t test_dsa() { - std::ifstream dsa_sig(PK_TEST_DATA_DIR "/dsa.vec"); - 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", true, [](std::map<std::string, std::string> m) -> size_t { return dsa_sig_kat(m["P"], m["Q"], m["G"], m["X"], m["Hash"], m["Msg"], m["Nonce"], m["Signature"]); }); +#endif return fails; } |