aboutsummaryrefslogtreecommitdiffstats
path: root/tests/x509/test_x509.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-09-24 08:44:12 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2017-09-23 20:44:12 -0400
commitb76bcf88bd272dcde26858c936a743a229aefd5a (patch)
tree3a6504ab0be963aceb49e95c1acb0f09ec3de84d /tests/x509/test_x509.py
parent5e3cc98473ad54db390736ac81bb74210e85056d (diff)
downloadcryptography-b76bcf88bd272dcde26858c936a743a229aefd5a.tar.gz
cryptography-b76bcf88bd272dcde26858c936a743a229aefd5a.tar.bz2
cryptography-b76bcf88bd272dcde26858c936a743a229aefd5a.zip
FreshestCRL extension support (#3937)
* add freshest CRL support * add tests * add changelog * add tests for FreshestCRL generation
Diffstat (limited to 'tests/x509/test_x509.py')
-rw-r--r--tests/x509/test_x509.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/x509/test_x509.py b/tests/x509/test_x509.py
index d0ce46d8..06aef666 100644
--- a/tests/x509/test_x509.py
+++ b/tests/x509/test_x509.py
@@ -2406,6 +2406,38 @@ class TestCertificateBuilder(object):
crl_issuer=None
)
]),
+ x509.FreshestCRL([
+ x509.DistributionPoint(
+ full_name=[x509.UniformResourceIdentifier(
+ u"http://domain.com/some.crl"
+ )],
+ relative_name=None,
+ reasons=frozenset([
+ x509.ReasonFlags.key_compromise,
+ x509.ReasonFlags.ca_compromise,
+ x509.ReasonFlags.affiliation_changed,
+ x509.ReasonFlags.superseded,
+ x509.ReasonFlags.privilege_withdrawn,
+ x509.ReasonFlags.cessation_of_operation,
+ x509.ReasonFlags.aa_compromise,
+ x509.ReasonFlags.certificate_hold,
+ ]),
+ crl_issuer=None
+ )
+ ]),
+ x509.FreshestCRL([
+ x509.DistributionPoint(
+ full_name=None,
+ relative_name=x509.RelativeDistinguishedName([
+ x509.NameAttribute(
+ NameOID.COMMON_NAME,
+ u"indirect CRL for indirectCRL CA3"
+ ),
+ ]),
+ reasons=None,
+ crl_issuer=None,
+ )
+ ]),
]
)
def test_ext(self, add_ext, backend):