Skip to content

Commit 9de6451

Browse files
miss-islingtonscop
andauthored
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 9798cef) Co-authored-by: Ville Skyttä <[email protected]>
1 parent 455583b commit 9de6451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/ssl.rst

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

18791879
.. attribute:: SSLContext.check_hostname
18801880

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

0 commit comments

Comments
 (0)