]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[docs] Correct typos in SSLContext.sni_callback (GH-30623)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 19 Feb 2022 02:13:33 +0000 (18:13 -0800)
committerGitHub <noreply@github.com>
Sat, 19 Feb 2022 02:13:33 +0000 (18:13 -0800)
Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de>
(cherry picked from commit f80a97b492f41afd3c42bb2bd6da7b2828dca215)

Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
Doc/library/ssl.rst

index 0b231f170aa0515a437bb300a52373b5687242a5..c3acf61d2b527a9a69f329a3b879374a8a9bcd56 100644 (file)
@@ -1719,10 +1719,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