summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authormatthewhughes934 <34972397+matthewhughes934@users.noreply.github.com>2020-07-17 08:59:15 (GMT)
committerGitHub <noreply@github.com>2020-07-17 08:59:15 (GMT)
commit8e836bb21ce73f0794fd769db5883c29680dfe47 (patch)
treeb19c7a0296b157bb6654f175ff608b61521a4910 /Doc
parent38d3864efe914fda64553e2ec75c9ec15574483f (diff)
downloadcpython-8e836bb21ce73f0794fd769db5883c29680dfe47.zip
cpython-8e836bb21ce73f0794fd769db5883c29680dfe47.tar.gz
cpython-8e836bb21ce73f0794fd769db5883c29680dfe47.tar.bz2
bpo-41195: Add getter for Openssl security level (GH-21282)
Add an accessor under SSLContext.security_level as a wrapper around SSL_CTX_get_security_level, see: https://www.openssl.org/docs/manmaster/man3/SSL_CTX_get_security_level.html ------ This is my first time contributing, so please pull me up on all the things I missed or did incorrectly. Automerge-Triggered-By: @tiran
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/ssl.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 852091c..1cfd165 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -2032,6 +2032,16 @@ to speed up repeated connections from the same clients.
.. versionadded:: 3.7
+.. attribute:: SSLContext.security_level
+
+ An integer representing the `security level
+ <https://www.openssl.org/docs/manmaster/man3/SSL_CTX_get_security_level.html>`_
+ for the context. This attribute is read-only.
+
+ .. availability:: OpenSSL 1.1.0 or newer
+
+ .. versionadded:: 3.10
+
.. attribute:: SSLContext.verify_flags
The flags for certificate verification operations. You can set flags like