diff options
author | Jack Lloyd <[email protected]> | 2017-09-24 13:04:08 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-24 13:04:08 -0400 |
commit | 3785deadff522923299c34bcd2ba364c02abbf0c (patch) | |
tree | d8993e9f91de3353b0be96bd7a5d542c6ae8192d /src/tests/unit_x509.cpp | |
parent | 8e70617d88b3f486d03f156f4800673bc4e14d06 (diff) |
Further build/test fixes for restricted configurations
Diffstat (limited to 'src/tests/unit_x509.cpp')
-rw-r--r-- | src/tests/unit_x509.cpp | 6 |
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; |