]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39616: clarify SSLContext.check_hostname effect (GH-18484)
authorVille Skyttä <ville.skytta@iki.fi>
Sat, 27 Mar 2021 14:20:11 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Mar 2021 14:20:11 +0000 (07:20 -0700)
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.

Doc/library/ssl.rst

index 1adac843f4eec98200f4a9b431c777eb39dc9c58..c0789ee5cfc0eef815d3af48297e90ee3684d76e 100644 (file)
@@ -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