aboutsummaryrefslogtreecommitdiffstats
path: root/docs/x509/ocsp.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/x509/ocsp.rst')
-rw-r--r--docs/x509/ocsp.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/x509/ocsp.rst b/docs/x509/ocsp.rst
index bf064134..528502a7 100644
--- a/docs/x509/ocsp.rst
+++ b/docs/x509/ocsp.rst
@@ -133,6 +133,16 @@ Creating Requests
:class:`~cryptography.hazmat.primitives.hashes.SHA384`, and
:class:`~cryptography.hazmat.primitives.hashes.SHA512` are allowed.
+ .. method:: add_extension(extension, critical)
+
+ Adds an extension 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.
+
.. method:: build()
:returns: A new :class:`~cryptography.x509.ocsp.OCSPRequest`.