Skip to content

Commit cad4ff6

Browse files
bpo-36868: Fix what's new for SSLContext.hostname_checks_common_name (GH-13248)
What's new now mentions SSLContext.hostname_checks_common_name instead of SSLContext.host_flags. https://bugs.python.org/issue36868 (cherry picked from commit 47eb223) Co-authored-by: Christian Heimes <[email protected]>
1 parent 3344197 commit cad4ff6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Doc/whatsnew/3.7.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ including failing the host name check now raises
13071307
:exc:`~ssl.SSLCertVerificationError` and aborts the handshake with a proper
13081308
TLS Alert message. The new exception contains additional information.
13091309
Host name validation can be customized with
1310-
:attr:`SSLContext.host_flags <ssl.SSLContext.host_flags>`.
1310+
:attr:`SSLContext.hostname_checks_common_name <ssl.SSLContext.hostname_checks_common_name>`.
13111311
(Contributed by Christian Heimes in :issue:`31399`.)
13121312

13131313
.. note::
@@ -1320,8 +1320,7 @@ The ``ssl`` module no longer sends IP addresses in SNI TLS extension.
13201320
(Contributed by Christian Heimes in :issue:`32185`.)
13211321

13221322
:func:`~ssl.match_hostname` no longer supports partial wildcards like
1323-
``www*.example.org``. :attr:`SSLContext.host_flags <ssl.SSLContext.host_flags>`
1324-
has partial wildcard matching disabled by default.
1323+
``www*.example.org``.
13251324
(Contributed by Mandeep Singh in :issue:`23033` and Christian Heimes in
13261325
:issue:`31399`.)
13271326

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
What's new now mentions SSLContext.hostname_checks_common_name instead of
2+
SSLContext.host_flags.

0 commit comments

Comments
 (0)