summaryrefslogtreecommitdiffstats
path: root/Doc/library/ssl.rst
diff options
context:
space:
mode:
authorJörn Heissler <joernheissler@users.noreply.github.com>2022-02-19 01:49:04 (GMT)
committerGitHub <noreply@github.com>2022-02-19 01:49:04 (GMT)
commitf80a97b492f41afd3c42bb2bd6da7b2828dca215 (patch)
tree9d6532ab2682e939b12d5431075974ffbdc6c85c /Doc/library/ssl.rst
parent6312c1052c0186b4596fc45c42fd3ade9f8f5911 (diff)
downloadcpython-f80a97b492f41afd3c42bb2bd6da7b2828dca215.zip
cpython-f80a97b492f41afd3c42bb2bd6da7b2828dca215.tar.gz
cpython-f80a97b492f41afd3c42bb2bd6da7b2828dca215.tar.bz2
[docs] Correct typos in SSLContext.sni_callback (GH-30623)
Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de>
Diffstat (limited to 'Doc/library/ssl.rst')
-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 151f254..8e5554e 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