@@ -1328,12 +1328,12 @@ SSL sockets also have the following additional methods and attributes:
1328
1328
If any precondition isn't met (e.g. not TLS 1.3, PHA not enabled), an
1329
1329
:exc: `SSLError ` is raised.
1330
1330
1331
- .. versionadded :: 3.8
1332
-
1333
1331
.. note ::
1334
1332
Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3
1335
1333
support, the method raises :exc: `NotImplementedError `.
1336
1334
1335
+ .. versionadded :: 3.8
1336
+
1337
1337
.. method :: SSLSocket.version()
1338
1338
1339
1339
Return the actual SSL protocol version negotiated by the connection
@@ -1922,6 +1922,8 @@ to speed up repeated connections from the same clients.
1922
1922
This attribute is not available unless the ssl module is compiled
1923
1923
with OpenSSL 1.1.0g or newer.
1924
1924
1925
+ .. versionadded :: 3.7
1926
+
1925
1927
.. attribute :: SSLContext.minimum_version
1926
1928
1927
1929
Like :attr: `SSLContext.maximum_version ` except it is the lowest
@@ -1932,6 +1934,8 @@ to speed up repeated connections from the same clients.
1932
1934
This attribute is not available unless the ssl module is compiled
1933
1935
with OpenSSL 1.1.0g or newer.
1934
1936
1937
+ .. versionadded :: 3.7
1938
+
1935
1939
.. attribute :: SSLContext.options
1936
1940
1937
1941
An integer representing the set of SSL options enabled on this context.
@@ -1965,12 +1969,12 @@ to speed up repeated connections from the same clients.
1965
1969
:meth: `SSLSocket.verify_client_post_handshake ` is called and some I/O is
1966
1970
performed.
1967
1971
1968
- .. versionadded :: 3.8
1969
-
1970
1972
.. note ::
1971
1973
Only available with OpenSSL 1.1.1 and TLS 1.3 enabled. Without TLS 1.3
1972
1974
support, the property value is None and can't be modified
1973
1975
1976
+ .. versionadded :: 3.8
1977
+
1974
1978
.. attribute :: SSLContext.protocol
1975
1979
1976
1980
The protocol version chosen when constructing the context. This attribute
@@ -1982,11 +1986,11 @@ to speed up repeated connections from the same clients.
1982
1986
subject common name in the absence of a subject alternative name
1983
1987
extension (default: true).
1984
1988
1985
- .. versionadded :: 3.7
1986
-
1987
1989
.. note ::
1988
1990
Only writeable with OpenSSL 1.1.0 or higher.
1989
1991
1992
+ .. versionadded :: 3.7
1993
+
1990
1994
.. attribute :: SSLContext.verify_flags
1991
1995
1992
1996
The flags for certificate verification operations. You can set flags like
0 commit comments