Skip to content

Commit a2e13ec

Browse files
[docs] Correct typos in SSLContext.sni_callback (GH-30623) (GH-31421)
Co-authored-by: Jörn Heissler <[email protected]> (cherry picked from commit f80a97b) Co-authored-by: Jörn Heissler <[email protected]>
1 parent ba457fe commit a2e13ec

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
@@ -1753,10 +1753,10 @@ to speed up repeated connections from the same clients.
17531753
Due to the early negotiation phase of the TLS connection, only limited
17541754
methods and attributes are usable like
17551755
:meth:`SSLSocket.selected_alpn_protocol` and :attr:`SSLSocket.context`.
1756-
:meth:`SSLSocket.getpeercert`, :meth:`SSLSocket.getpeercert`,
1757-
:meth:`SSLSocket.cipher` and :meth:`SSLSocket.compress` methods require that
1756+
The :meth:`SSLSocket.getpeercert`,
1757+
:meth:`SSLSocket.cipher` and :meth:`SSLSocket.compression` methods require that
17581758
the TLS connection has progressed beyond the TLS Client Hello and therefore
1759-
will not contain return meaningful values nor can they be called safely.
1759+
will not return meaningful values nor can they be called safely.
17601760

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

0 commit comments

Comments
 (0)