Skip to content

[3.10] Fix minor typos in SSL documentation (GH-101158) #101202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Doc/library/ssl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ SSL Sockets

.. versionchanged:: 3.5
The :meth:`shutdown` does not reset the socket timeout each time bytes
are received or sent. The socket timeout is now to maximum total duration
are received or sent. The socket timeout is now the maximum total duration
of the shutdown.

.. deprecated:: 3.6
Expand Down Expand Up @@ -1177,8 +1177,8 @@ SSL sockets also have the following additional methods and attributes:
cause write operations.

.. versionchanged:: 3.5
The socket timeout is no more reset each time bytes are received or sent.
The socket timeout is now to maximum total duration to read up to *len*
The socket timeout is no longer reset each time bytes are received or sent.
The socket timeout is now the maximum total duration to read up to *len*
bytes.

.. deprecated:: 3.6
Expand All @@ -1196,8 +1196,8 @@ SSL sockets also have the following additional methods and attributes:
also cause read operations.

.. versionchanged:: 3.5
The socket timeout is no more reset each time bytes are received or sent.
The socket timeout is now to maximum total duration to write *buf*.
The socket timeout is no longer reset each time bytes are received or sent.
The socket timeout is now the maximum total duration to write *buf*.

.. deprecated:: 3.6
Use :meth:`~SSLSocket.send` instead of :meth:`~SSLSocket.write`.
Expand All @@ -1224,14 +1224,14 @@ SSL sockets also have the following additional methods and attributes:
:attr:`~SSLSocket.context` is true.

.. versionchanged:: 3.5
The socket timeout is no more reset each time bytes are received or sent.
The socket timeout is now to maximum total duration of the handshake.
The socket timeout is no longer reset each time bytes are received or sent.
The socket timeout is now the maximum total duration of the handshake.

.. versionchanged:: 3.7
Hostname or IP address is matched by OpenSSL during handshake. The
function :func:`match_hostname` is no longer used. In case OpenSSL
refuses a hostname or IP address, the handshake is aborted early and
a TLS alert message is send to the peer.
a TLS alert message is sent to the peer.

.. method:: SSLSocket.getpeercert(binary_form=False)

Expand Down