diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-20 20:32:49 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-20 20:32:49 -0500 |
commit | 394cca58a7dbd7e34d111f8c78a8f2dabda3a4b3 (patch) | |
tree | 41e339b1b46f8531725e0fe6f27f976eb5863d05 /tests/test_x509.py | |
parent | 45b8752fd2e7c40dcdbe655461815206d3372baf (diff) | |
parent | 9543a33eb63564c3fe04efbc451b2f6c742be4fe (diff) | |
download | cryptography-394cca58a7dbd7e34d111f8c78a8f2dabda3a4b3.tar.gz cryptography-394cca58a7dbd7e34d111f8c78a8f2dabda3a4b3.tar.bz2 cryptography-394cca58a7dbd7e34d111f8c78a8f2dabda3a4b3.zip |
Merge pull request #2538 from reaperhulk/empty-crls-are-beautiful-too
support CRLs with no revoked certificates
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r-- | tests/test_x509.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py index 1a4c484b..511aac6b 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -299,6 +299,14 @@ class TestRevokedCertificate(object): assert len(flags) == 0 + def test_no_revoked_certs(self, backend): + crl = _load_cert( + os.path.join("x509", "custom", "crl_empty.pem"), + x509.load_pem_x509_crl, + backend + ) + assert len(crl) == 0 + def test_duplicate_entry_ext(self, backend): crl = _load_cert( os.path.join("x509", "custom", "crl_dup_entry_ext.pem"), |