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 47eb223406)

Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
Miss Islington (bot) 2019-06-03 12:02:11 -07:00 committed by GitHub
parent 3344197040
commit cad4ff65eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -1307,7 +1307,7 @@ including failing the host name check now raises
:exc:`~ssl.SSLCertVerificationError` and aborts the handshake with a proper
TLS Alert message. The new exception contains additional information.
Host name validation can be customized with
:attr:`SSLContext.host_flags <ssl.SSLContext.host_flags>`.
:attr:`SSLContext.hostname_checks_common_name <ssl.SSLContext.hostname_checks_common_name>`.
(Contributed by Christian Heimes in :issue:`31399`.)
.. note::
@ -1320,8 +1320,7 @@ The ``ssl`` module no longer sends IP addresses in SNI TLS extension.
(Contributed by Christian Heimes in :issue:`32185`.)
:func:`~ssl.match_hostname` no longer supports partial wildcards like
``www*.example.org``. :attr:`SSLContext.host_flags <ssl.SSLContext.host_flags>`
has partial wildcard matching disabled by default.
``www*.example.org``.
(Contributed by Mandeep Singh in :issue:`23033` and Christian Heimes in
:issue:`31399`.)

View file

@ -0,0 +1,2 @@
What's new now mentions SSLContext.hostname_checks_common_name instead of
SSLContext.host_flags.