aboutsummaryrefslogtreecommitdiffstats
path: root/docs/x509
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-07-16 20:49:51 +0530
committerAlex Gaynor <alex.gaynor@gmail.com>2018-07-16 11:19:51 -0400
commit5d187402775bcb7bc8b0da1d972d36bf9ad9dbff (patch)
treecaaf2870b516da1bfe027ef6b1886bc1ed66f300 /docs/x509
parent2e85a925b49e566776585f35a7c0653510d84262 (diff)
downloadcryptography-5d187402775bcb7bc8b0da1d972d36bf9ad9dbff.tar.gz
cryptography-5d187402775bcb7bc8b0da1d972d36bf9ad9dbff.tar.bz2
cryptography-5d187402775bcb7bc8b0da1d972d36bf9ad9dbff.zip
add crl.get_revoked_certificate method (#4331)
* add crl.get_revoked_certificate method * lexicographic is the best ographic * rename
Diffstat (limited to 'docs/x509')
-rw-r--r--docs/x509/reference.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst
index 64097bf2..bc3dd556 100644
--- a/docs/x509/reference.rst
+++ b/docs/x509/reference.rst
@@ -463,6 +463,15 @@ X.509 CRL (Certificate Revocation List) Object
>>> crl.fingerprint(hashes.SHA256())
b'e\xcf.\xc4:\x83?1\xdc\xf3\xfc\x95\xd7\xb3\x87\xb3\x8e\xf8\xb93!\x87\x07\x9d\x1b\xb4!\xb9\xe4W\xf4\x1f'
+ .. method:: get_revoked_certificate_by_serial_number(serial_number)
+
+ .. versionadded:: 2.3
+
+ :param serial_number: The serial as a Python integer.
+ :returns: :class:`~cryptography.x509.RevokedCertificate` if the
+ ``serial_number`` is present in the CRL or ``None`` if it
+ is not.
+
.. attribute:: signature_hash_algorithm
:type: :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`