diff options
Diffstat (limited to 'src/tests/test_gost_3410.cpp')
-rw-r--r-- | src/tests/test_gost_3410.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tests/test_gost_3410.cpp b/src/tests/test_gost_3410.cpp index 08dc1555b..3c83af805 100644 --- a/src/tests/test_gost_3410.cpp +++ b/src/tests/test_gost_3410.cpp @@ -5,10 +5,11 @@ */ #include "tests.h" -#include "test_pubkey.h" #if defined(BOTAN_HAS_GOST_34_10_2001) +#include "test_pubkey.h" + #include <botan/pubkey.h> #include <botan/gost_3410.h> #include <botan/oids.h> @@ -42,13 +43,11 @@ size_t gost_verify(const std::string& group_id, } } -#endif size_t test_gost_3410() { size_t fails = 0; -#if defined(BOTAN_HAS_GOST_34_10_2001) std::ifstream ecdsa_sig(PK_TEST_DATA_DIR "/gost_3410.vec"); fails += run_tests_bb(ecdsa_sig, "GOST-34.10 Signature", "Signature", true, @@ -56,8 +55,12 @@ size_t test_gost_3410() { return gost_verify(m["Group"], m["Pubkey"], m["Hash"], m["Msg"], m["Signature"]); }); -#endif return fails; } +#else + +SKIP_TEST(gost_3410); + +#endif // BOTAN_HAS_GOST_34_10_2001 |