Skip to content

Commit 9c3f111

Browse files
miss-islingtonjoernheissler
authored andcommitted
[docs] Correct typos in SSLContext.sni_callback (pythonGH-30623)
Co-authored-by: Jörn Heissler <[email protected]> (cherry picked from commit f80a97b) Co-authored-by: Jörn Heissler <[email protected]>
1 parent 158565f commit 9c3f111

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/ssl.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1719,10 +1719,10 @@ to speed up repeated connections from the same clients.
17191719
Due to the early negotiation phase of the TLS connection, only limited
17201720
methods and attributes are usable like
17211721
:meth:`SSLSocket.selected_alpn_protocol` and :attr:`SSLSocket.context`.
1722-
:meth:`SSLSocket.getpeercert`, :meth:`SSLSocket.getpeercert`,
1723-
:meth:`SSLSocket.cipher` and :meth:`SSLSocket.compress` methods require that
1722+
The :meth:`SSLSocket.getpeercert`,
1723+
:meth:`SSLSocket.cipher` and :meth:`SSLSocket.compression` methods require that
17241724
the TLS connection has progressed beyond the TLS Client Hello and therefore
1725-
will not contain return meaningful values nor can they be called safely.
1725+
will not return meaningful values nor can they be called safely.
17261726

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

0 commit comments

Comments
 (0)