diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-09-22 21:29:36 +0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2017-09-22 09:29:36 -0400 |
commit | 5e3cc98473ad54db390736ac81bb74210e85056d (patch) | |
tree | d8e0d5e03aee005dc0205661e55d785625b9a71f /tests/x509/test_x509.py | |
parent | 2fc5849960032a246f869ed1a5d7597d64169cfa (diff) | |
download | cryptography-5e3cc98473ad54db390736ac81bb74210e85056d.tar.gz cryptography-5e3cc98473ad54db390736ac81bb74210e85056d.tar.bz2 cryptography-5e3cc98473ad54db390736ac81bb74210e85056d.zip |
support delta crl indicator extension (#3936)
This is an extension for CRLs
Diffstat (limited to 'tests/x509/test_x509.py')
-rw-r--r-- | tests/x509/test_x509.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/x509/test_x509.py b/tests/x509/test_x509.py index 1833a4a2..d0ce46d8 100644 --- a/tests/x509/test_x509.py +++ b/tests/x509/test_x509.py @@ -232,6 +232,19 @@ class TestCertificateRevocationList(object): x509.UniformResourceIdentifier(b"https://cryptography.io"), ]) + def test_delta_crl_indicator(self, backend): + crl = _load_cert( + os.path.join("x509", "custom", "crl_delta_crl_indicator.pem"), + x509.load_pem_x509_crl, + backend + ) + + dci = crl.extensions.get_extension_for_oid( + ExtensionOID.DELTA_CRL_INDICATOR + ) + assert dci.value == x509.DeltaCRLIndicator(12345678901234567890) + assert dci.critical is False + def test_signature(self, backend): crl = _load_cert( os.path.join("x509", "custom", "crl_all_reasons.pem"), |