cryptography/tests/x509
Ivan Desiatov 4f9ca1c92c
PyPolicyDefinition and related Verifier API changes (#12390)
* Add PyPolicyDefinition, make accessible via verifiers.

* Add python Policy to x509.pyi

* Expose PyPolicyDefinition to Python.

* Rename PyPolicyDefinition to PyPolicy to match python name.

* `test_verification` uses `policy` property.

* Add additional PyPolicy tests.

* Add back direct getters on verifiers with deprecation warnings.

* Correct Policy.subject return type in x509.pyi

* Rename x509.verify.py_policy module to x509.verify.policy

* x509.verify uses mod.rs convention

* Use Optional<SubjectOwner> instead of adding None value to SubjectOwner.

* PyPolicy stores original subject + naming changes in Verifiers.
2025-02-05 12:46:43 -08:00
..
verification PyPolicyDefinition and related Verifier API changes (#12390) 2025-02-05 12:46:43 -08:00
__init__.py move x509 tests into a module (#3889) 2017-09-06 21:48:10 -04:00
test_name.py Support empty string in Name.from_rfc4514_string() (#10964) 2024-05-09 13:54:49 +00:00
test_ocsp.py Add _utc datetime methods to x509.ocsp (#11183) 2024-06-30 12:08:56 -04:00
test_x509.py Implement fixes to ruff check --preview (#12230) 2025-01-03 17:28:57 +01:00
test_x509_crlbuilder.py support RSA PSS for CRLs (#10013) 2023-12-18 17:54:38 -05:00
test_x509_ext.py Bump to ruff 0.9 (#12259) 2025-01-09 11:44:10 -08:00
test_x509_revokedcertbuilder.py Reformat most remaining tests (#9771) 2023-10-25 11:10:42 -05:00