diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-10-24 08:58:07 +0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-10-23 20:58:07 -0400 |
commit | a9b4f86de8a0de2e846a42d9b35c39e88d621bb7 (patch) | |
tree | efef31ddf64ca127c40c48209853c66d2440e46a /tests/x509 | |
parent | f6f2d7ebd5b4370be74e8dc267e9b76621147f29 (diff) | |
download | cryptography-a9b4f86de8a0de2e846a42d9b35c39e88d621bb7.tar.gz cryptography-a9b4f86de8a0de2e846a42d9b35c39e88d621bb7.tar.bz2 cryptography-a9b4f86de8a0de2e846a42d9b35c39e88d621bb7.zip |
next_update is not a required field on OCSP responses (#4513)
Diffstat (limited to 'tests/x509')
-rw-r--r-- | tests/x509/test_ocsp.py | 8 |
1 files changed, 8 insertions, 0 deletions
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"), |