aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-18 16:39:49 -0500
committerJack Lloyd <[email protected]>2018-01-18 16:39:49 -0500
commit325fbe90533c648e9cf58a95bfe1bae5d4bdd759 (patch)
tree607b588f42427e4c78965bbe3fa596f3b36fa660 /src/tests
parente7b9733171835e0a91155589318fdd08b1c68113 (diff)
Fix test error when MD5 is disabled
Fixes GH #1418
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_x509_path.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/test_x509_path.cpp b/src/tests/test_x509_path.cpp
index 3b84cfd54..3a33e150c 100644
--- a/src/tests/test_x509_path.cpp
+++ b/src/tests/test_x509_path.cpp
@@ -485,7 +485,12 @@ std::vector<Test::Result> BSI_Path_Validation_Tests::run()
for (auto& i : expected)
{
const std::string test_name = i.first;
- const std::string expected_result = i.second;
+ std::string expected_result = i.second;
+
+#if !defined(BOTAN_HAS_MD5)
+ if(expected_result == "Hash function used is considered too weak for security")
+ expected_result = "Certificate signed with unknown/unavailable algorithm";
+#endif
const std::string test_dir = bsi_test_dir + "/" + test_name;