diff options
author | Pavol Žáčik <[email protected]> | 2019-12-03 22:20:03 +0100 |
---|---|---|
committer | Pavol Žáčik <[email protected]> | 2019-12-03 22:20:03 +0100 |
commit | 49d398f1bb9cec5d1b4a6977d7d29df1bcb046b4 (patch) | |
tree | 6027ebce10426a0ae8de60ddb45fee91b52c22a7 /doc/api_ref/python.rst | |
parent | 75f73a0e74bf5c3fde87ac61b24bf0b2fde3a742 (diff) |
Add documentation for CRL API in FFI and Python binding
Diffstat (limited to 'doc/api_ref/python.rst')
-rw-r--r-- | doc/api_ref/python.rst | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/doc/api_ref/python.rst b/doc/api_ref/python.rst index 1fda54193..a57f29e6d 100644 --- a/doc/api_ref/python.rst +++ b/doc/api_ref/python.rst @@ -547,7 +547,7 @@ HOTP X509Cert ----------------------------------------- -.. py:class:: X509Cert(filename=None, buf=None) +.. py:class:: X509Cert(filename=None, buf=None) .. py:method:: time_starts() @@ -626,7 +626,8 @@ X509Cert trusted_path=None, \ required_strength=0, \ hostname=None, \ - reference_time=0) + reference_time=0 \ + crls=None) Verify a certificate. Returns 0 if validation was successful, returns a positive error code if the validation was unsuccesful. @@ -648,16 +649,25 @@ X509Cert Set ``reference_time`` to be the time which the certificate chain is validated against. Use zero (default) to use the current system clock. + ``crls`` is a list of CRLs issued by either trusted or untrusted authorities. + .. py:classmethod:: validation_status(error_code) Return an informative string associated with the verification return code. - + .. py:method:: is_revoked(self, crl) + Check if the certificate (``self``) is revoked on the given ``crl``. +X509CRL +----------------------------------------- +.. py:class:: X509CRL(filename=None, buf=None) + Class representing an X.509 Certificate Revocation List. + A CRL in PEM or DER format can be loaded from a file, with the ``filename`` argument, + or from a bytestring, with the ``buf`` argument. |