aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_x509.cpp
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-08-09 18:06:39 +0200
committerRenĂ© Korthaus <[email protected]>2016-08-17 20:26:14 +0200
commit40a935209876b7c5360dadae85b0b26c2e13e0f5 (patch)
tree0adc0a99ce785ebe090d28e68e72fffd60238e85 /src/tests/unit_x509.cpp
parentdeef8ba63860efb14c45c5ee1cba2a3faaf8a719 (diff)
Fix leading zero bytes in DSA, ECDSA, ECGDSA and ECKCDSA signatures
Diffstat (limited to 'src/tests/unit_x509.cpp')
-rw-r--r--src/tests/unit_x509.cpp11
1 files changed, 4 insertions, 7 deletions
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<Test::Result> results;
const std::vector<std::string> 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;
}