aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_gost_3410.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-09 16:52:51 +0000
committerlloyd <[email protected]>2014-02-09 16:52:51 +0000
commit4f3b0ce8fccd879791d5a701102ee0737f3509b1 (patch)
tree37ab6f550154de465d2677fdab1cc1d96904fa5c /src/tests/test_gost_3410.cpp
parent253aa701ffa654af3c880e1e1b4965fabf86be3b (diff)
More fixes for minified builds
Diffstat (limited to 'src/tests/test_gost_3410.cpp')
-rw-r--r--src/tests/test_gost_3410.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/test_gost_3410.cpp b/src/tests/test_gost_3410.cpp
index 4cd43a027..843a490b1 100644
--- a/src/tests/test_gost_3410.cpp
+++ b/src/tests/test_gost_3410.cpp
@@ -1,6 +1,7 @@
#include "tests.h"
#include "test_pubkey.h"
+#if defined(BOTAN_HAS_GOST_34_10_2001)
#include <botan/auto_rng.h>
#include <botan/pubkey.h>
#include <botan/gost_3410.h>
@@ -37,18 +38,21 @@ size_t gost_verify(const std::string& group_id,
}
}
+#endif
size_t test_gost_3410()
{
- std::ifstream ecdsa_sig(PK_TEST_DATA_DIR "/gost_3410.vec");
-
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,
[](std::map<std::string, std::string> m) -> size_t
{
return gost_verify(m["Group"], m["Pubkey"], m["Hash"], m["Msg"], m["Signature"]);
});
+#endif
return fails;
}