diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-03-27 14:29:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 14:29:50 (GMT) |
commit | 9de6451558c38537b2335d6e04e3bf8743c30576 (patch) | |
tree | 9c91df06495852c5153760fda5d0b06c7b38f9b2 /Doc/library | |
parent | 455583b54aaec9a4266ff37dd438cbbd8ec6068a (diff) | |
download | cpython-9de6451558c38537b2335d6e04e3bf8743c30576.zip cpython-9de6451558c38537b2335d6e04e3bf8743c30576.tar.gz cpython-9de6451558c38537b2335d6e04e3bf8743c30576.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.
(cherry picked from commit 9798cef92b882cd82a338d3368eaf3c4a32f5c2d)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/ssl.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 04523e9..24b46ca 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1878,7 +1878,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 |