From 2c145ccad2a2d71ad09fd7c5b0f02fabf0d150b5 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 2 Oct 2015 11:27:21 -0500 Subject: document the extension type requirement a bit better --- docs/x509/reference.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst index 62bdb3a9..87383db1 100644 --- a/docs/x509/reference.rst +++ b/docs/x509/reference.rst @@ -496,9 +496,8 @@ X.509 Certificate Builder Adds an X.509 extension to the certificate. - :param extension: The extension to add to the certificate. Can be one - of :class:`~cryptography.x509.BasicConstraints` or - :class:`~cryptography.x509.SubjectAlternativeName`. + :param extension: An extension conforming to the + :class:`~cryptography.x509.ExtensionType` interface. :param critical: Set to ``True`` if the extension must be understood and handled by whoever reads the certificate. @@ -663,8 +662,8 @@ X.509 CSR (Certificate Signing Request) Builder Object .. method:: add_extension(extension, critical) - :param extension: The :class:`~cryptography.x509.Extension` to add to - the request. + :param extension: An extension conforming to the + :class:`~cryptography.x509.ExtensionType` interface. :param critical: Set to `True` if the extension must be understood and handled by whoever reads the certificate. :returns: A new -- cgit v1.2.3