From a9d78c13ea2996c896d3dfda8b7e887c444ec4cb Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 26 Nov 2014 10:59:03 -1000 Subject: update docs, test invalid x509 version --- docs/exceptions.rst | 5 +++++ docs/hazmat/primitives/interfaces.rst | 2 +- docs/x509.rst | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/exceptions.rst b/docs/exceptions.rst index 28da8ecc..b86d3eea 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -43,3 +43,8 @@ Exceptions This is raised when the verify method of a one time password function's computed token does not match the expected token. + + +.. class:: InvalidX509Version + + This is raised when an X.509 certificate has an invalid version number. diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index d87e8d66..71646ce9 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -705,7 +705,7 @@ X509 .. attribute:: version - :type: X509Version + :type: :class:`~cryptography.x509.X509Version` The certificate version as an enumeration. diff --git a/docs/x509.rst b/docs/x509.rst index 5d18297a..2c9c0f46 100644 --- a/docs/x509.rst +++ b/docs/x509.rst @@ -3,7 +3,7 @@ X.509 ===== -.. currentmodule:: cryptography.hazmat.primitives.x509 +.. currentmodule:: cryptography.x509 X.509 is an ITU-T standard for a `public key infrastructure`_. X.509v3 is defined in :rfc:`5280` (which obsoletes :rfc:`2459` and :rfc:`3280`). -- cgit v1.2.3