Skip to content

Commit

Permalink
[docs] Correct typos in SSLContext.sni_callback (GH-30623) (GH-31421)
Browse files Browse the repository at this point in the history
Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de>
(cherry picked from commit f80a97b)

Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
  • Loading branch information
miss-islington and joernheissler committed Feb 21, 2022
1 parent ba457fe commit a2e13ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/ssl.rst
Expand Up @@ -1753,10 +1753,10 @@ to speed up repeated connections from the same clients.
Due to the early negotiation phase of the TLS connection, only limited
methods and attributes are usable like
:meth:`SSLSocket.selected_alpn_protocol` and :attr:`SSLSocket.context`.
:meth:`SSLSocket.getpeercert`, :meth:`SSLSocket.getpeercert`,
:meth:`SSLSocket.cipher` and :meth:`SSLSocket.compress` methods require that
The :meth:`SSLSocket.getpeercert`,
:meth:`SSLSocket.cipher` and :meth:`SSLSocket.compression` methods require that
the TLS connection has progressed beyond the TLS Client Hello and therefore
will not contain return meaningful values nor can they be called safely.
will not return meaningful values nor can they be called safely.

The *sni_callback* function must return ``None`` to allow the
TLS negotiation to continue. If a TLS failure is required, a constant
Expand Down

0 comments on commit a2e13ec

Please sign in to comment.