summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2021-03-27 14:20:11 (GMT)
committerGitHub <noreply@github.com>2021-03-27 14:20:11 (GMT)
commit9798cef92b882cd82a338d3368eaf3c4a32f5c2d (patch)
treee1270c5dea66d7e33b3373bcb78e20954dd52d6f /Doc/library
parent933dfd7504e521a27fd8b94d02b79f9ed08f4631 (diff)
downloadcpython-9798cef92b882cd82a338d3368eaf3c4a32f5c2d.zip
cpython-9798cef92b882cd82a338d3368eaf3c4a32f5c2d.tar.gz
cpython-9798cef92b882cd82a338d3368eaf3c4a32f5c2d.tar.bz2
bpo-39616: clarify SSLContext.check_hostname effect (GH-18484)
It doesn't actually affect whether match_hostname() is called (it never is in this context any longer), but whether hostname verification occurs in the first place.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/ssl.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 1adac84..c0789ee 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -1885,7 +1885,7 @@ to speed up repeated connections from the same clients.
.. attribute:: SSLContext.check_hostname
- Whether to match the peer cert's hostname with :func:`match_hostname` in
+ Whether to match the peer cert's hostname in
:meth:`SSLSocket.do_handshake`. The context's
:attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or
:data:`CERT_REQUIRED`, and you must pass *server_hostname* to