]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[docs] Correct typos in SSLContext.sni_callback (GH-30623)
authorJörn Heissler <joernheissler@users.noreply.github.com>
Sat, 19 Feb 2022 01:49:04 +0000 (02:49 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Feb 2022 01:49:04 +0000 (17:49 -0800)
Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de>
Doc/library/ssl.rst

index 151f2546eeb600ac0b510dba61275f53f87bce31..8e5554ee4b84279f546f60557ac4c6f315a046a7 100644 (file)
@@ -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