From 0b8f1f93e07f23fac2c38769648350b4691dacfb Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Tue, 26 Feb 2019 13:09:11 +0800 Subject: [PATCH 1/2] Fix order of note and versionadded directives in ssl.rst --- Doc/library/ssl.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 4817bba7d4f2d2..f65d5ffaffb79d 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1328,12 +1328,12 @@ SSL sockets also have the following additional methods and attributes: If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an :exc:`SSLError` is raised. - .. versionadded:: 3.8 - .. note:: Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 support, the method raises :exc:`NotImplementedError`. + .. versionadded:: 3.8 + .. method:: SSLSocket.version() Return the actual SSL protocol version negotiated by the connection @@ -1965,12 +1965,12 @@ to speed up repeated connections from the same clients. :meth:`SSLSocket.verify_client_post_handshake` is called and some I/O is performed. - .. versionadded:: 3.8 - .. note:: Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3 support, the property value is None and can't be modified + .. versionadded:: 3.8 + .. attribute:: SSLContext.protocol The protocol version chosen when constructing the context. This attribute @@ -1982,11 +1982,11 @@ to speed up repeated connections from the same clients. subject common name in the absence of a subject alternative name extension (default: true). - .. versionadded:: 3.7 - .. note:: Only writeable with OpenSSL 1.1.0 or higher. + .. versionadded:: 3.7 + .. attribute:: SSLContext.verify_flags The flags for certificate verification operations. You can set flags like From 2309294767aceb8e88375b2e0a825800794c0b99 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Tue, 26 Feb 2019 13:09:40 +0800 Subject: [PATCH 2/2] Add versionadded directives to ssl.minimum_version and ssl.maximum_version --- Doc/library/ssl.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index f65d5ffaffb79d..6a441983f8884e 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1922,6 +1922,8 @@ to speed up repeated connections from the same clients. This attribute is not available unless the ssl module is compiled with OpenSSL 1.1.0g or newer. + .. versionadded:: 3.7 + .. attribute:: SSLContext.minimum_version Like :attr:`SSLContext.maximum_version` except it is the lowest @@ -1932,6 +1934,8 @@ to speed up repeated connections from the same clients. This attribute is not available unless the ssl module is compiled with OpenSSL 1.1.0g or newer. + .. versionadded:: 3.7 + .. attribute:: SSLContext.options An integer representing the set of SSL options enabled on this context.