Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9798cef

Browse files
authored
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.
1 parent 933dfd7 commit 9798cef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/ssl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ to speed up repeated connections from the same clients.
18851885

18861886
.. attribute:: SSLContext.check_hostname
18871887

1888-
Whether to match the peer cert's hostname with :func:`match_hostname` in
1888+
Whether to match the peer cert's hostname in
18891889
:meth:`SSLSocket.do_handshake`. The context's
18901890
:attr:`~SSLContext.verify_mode` must be set to :data:`CERT_OPTIONAL` or
18911891
:data:`CERT_REQUIRED`, and you must pass *server_hostname* to

0 commit comments

Comments
 (0)