diff options
-rw-r--r-- | src/tests/test_ocsp.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tests/test_ocsp.cpp b/src/tests/test_ocsp.cpp index 1d64018cc..ef4c5634b 100644 --- a/src/tests/test_ocsp.cpp +++ b/src/tests/test_ocsp.cpp @@ -198,18 +198,14 @@ class OCSP_Tests final : public Test typedef std::chrono::system_clock Clock; const auto ocspTimeout = std::chrono::milliseconds(3000); - auto ocsp_status = Botan::PKIX::check_ocsp_online(cert_path, { &certstore }, Clock::now(), ocspTimeout, true); + auto ocsp_status = Botan::PKIX::check_ocsp_online(cert_path, { &certstore }, Clock::now(), ocspTimeout, false); - if(result.test_eq("Expected size of ocsp_status", ocsp_status.size(), 2)) + if(result.test_eq("Expected size of ocsp_status", ocsp_status.size(), 1)) { if(result.test_eq("Expected size of ocsp_status[0]", ocsp_status[0].size(), 1)) { result.confirm("Status expired", ocsp_status[0].count(Botan::Certificate_Status_Code::OCSP_HAS_EXPIRED)); } - if(result.test_eq("Expected size of ocsp_status[1]", ocsp_status[1].size(), 1)) - { - result.confirm("Status good", ocsp_status[1].count(Botan::Certificate_Status_Code::OCSP_RESPONSE_GOOD)); - } } return result; |