aboutsummaryrefslogtreecommitdiffstats
path: root/docs/x509
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-10-07 10:10:09 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2018-10-06 22:10:09 -0400
commit0c07580a216d4b75bfdca22254803cf48c602079 (patch)
treee308db30d277fab192a5b647037b12cb901c2129 /docs/x509
parentff7e3971d8d1106a4377f6c8d436c4005c883066 (diff)
downloadcryptography-0c07580a216d4b75bfdca22254803cf48c602079.tar.gz
cryptography-0c07580a216d4b75bfdca22254803cf48c602079.tar.bz2
cryptography-0c07580a216d4b75bfdca22254803cf48c602079.zip
support extensions in the OCSP request builder (#4481)
* support extensions in the OCSP request builder * cover a missed branch * refactor to use new func * review feedback
Diffstat (limited to 'docs/x509')
-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`.