diff options
| author | Mathias Ertl <mati@er.tl> | 2022-10-16 01:16:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-15 19:16:13 -0400 |
| commit | e50884d259e9612c3df8903764857de21e8308d9 (patch) | |
| tree | b1e5ef2d9066795fc03126ddc5d7ec51e3b82ab0 /tests | |
| parent | 25f7005f2698bac5c7a1374c0f54782884385a64 (diff) | |
| download | cryptography-e50884d259e9612c3df8903764857de21e8308d9.tar.gz | |
Make sure that one of full_name, relative_name or crl_issuer is set in distribution points (#7710)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/x509/test_x509_ext.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/x509/test_x509_ext.py b/tests/x509/test_x509_ext.py index fd09b091d..7284a73be 100644 --- a/tests/x509/test_x509_ext.py +++ b/tests/x509/test_x509_ext.py @@ -3968,6 +3968,10 @@ class TestDistributionPoint: "data", "notname", None, None # type:ignore[arg-type] ) + def test_no_full_name_relative_name_or_crl_issuer(self): + with pytest.raises(ValueError): + x509.DistributionPoint(None, None, None, None) + def test_crl_issuer_not_general_names(self): with pytest.raises(TypeError): x509.DistributionPoint( |
