aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_x509.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/unit_x509.cpp')
-rw-r--r--src/tests/unit_x509.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/unit_x509.cpp b/src/tests/unit_x509.cpp
index bf17fda3f..b9aa1709e 100644
--- a/src/tests/unit_x509.cpp
+++ b/src/tests/unit_x509.cpp
@@ -996,6 +996,12 @@ Test::Result test_hashes(const std::string& algo, const std::string& hash_fn = "
const std::unique_ptr<Botan::Private_Key> key(make_a_private_key(algo));
+ if(!key)
+ {
+ result.test_note("Skipping due to missing signature algorithm: " + algo);
+ return result;
+ }
+
struct TestData
{
const std::string issuer, subject, issuer_hash, subject_hash;