From 40a935209876b7c5360dadae85b0b26c2e13e0f5 Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Tue, 9 Aug 2016 18:06:39 +0200 Subject: Fix leading zero bytes in DSA, ECDSA, ECGDSA and ECKCDSA signatures --- src/tests/unit_x509.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/tests/unit_x509.cpp') diff --git a/src/tests/unit_x509.cpp b/src/tests/unit_x509.cpp index 8bbad5028..5110c7d23 100644 --- a/src/tests/unit_x509.cpp +++ b/src/tests/unit_x509.cpp @@ -481,20 +481,17 @@ class X509_Cert_Unit_Tests : public Test std::vector results; const std::vector sig_algos { "RSA", "DSA", "ECDSA", "ECGDSA", "ECKCDSA" }; Test::Result cert_result("X509 Unit"); + Test::Result usage_result("X509 Usage"); + for(const auto& algo : sig_algos) { cert_result.merge(test_x509_cert(algo)); + usage_result.merge(test_usage(algo)); } results.push_back(cert_result); - results.push_back(test_x509_dates()); - - Test::Result usage_result("X509 Usage"); - for(const auto& algo : sig_algos) - { - usage_result.merge(test_usage(algo)); - } results.push_back(usage_result); + results.push_back(test_x509_dates()); return results; } -- cgit v1.2.3