From a9b4f86de8a0de2e846a42d9b35c39e88d621bb7 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 24 Oct 2018 08:58:07 +0800 Subject: next_update is not a required field on OCSP responses (#4513) --- tests/x509/test_ocsp.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/x509/test_ocsp.py b/tests/x509/test_ocsp.py index 0d44b6da..3ee6a26e 100644 --- a/tests/x509/test_ocsp.py +++ b/tests/x509/test_ocsp.py @@ -319,6 +319,14 @@ class TestOCSPResponse(object): ) assert resp.revocation_reason is x509.ReasonFlags.superseded + def test_load_revoked_no_next_update(self): + resp = _load_data( + os.path.join("x509", "ocsp", "resp-revoked-no-next-update.der"), + ocsp.load_der_ocsp_response, + ) + assert resp.serial_number == 16160 + assert resp.next_update is None + def test_response_extensions(self): resp = _load_data( os.path.join("x509", "ocsp", "resp-revoked-reason.der"), -- cgit v1.2.3