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
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
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.
: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
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