summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-02-21 00:17:56 (GMT)
committerGitHub <noreply@github.com>2022-02-21 00:17:56 (GMT)
commita2e13ec0ce050a9050ec195ec0cc2a540912480d (patch)
tree05ff2fac1df7313d494f3588c4c42e6310a26f07
parentba457fe6f8e50ad3ef3ceffb75dee96629a42ad7 (diff)
downloadcpython-a2e13ec0ce050a9050ec195ec0cc2a540912480d.zip
cpython-a2e13ec0ce050a9050ec195ec0cc2a540912480d.tar.gz
cpython-a2e13ec0ce050a9050ec195ec0cc2a540912480d.tar.bz2
[docs] Correct typos in SSLContext.sni_callback (GH-30623) (GH-31421)
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>
-rw-r--r--Doc/library/ssl.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index a20f97a..3531cc3 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -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