File tree Expand file tree Collapse file tree
Misc/NEWS.d/next/Security Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11:meth: `ssl.SSLContext.wrap_bio ` now validates its *server_side *,
22*server_hostname * and *session * arguments similar to
3- :meth: `ssl.SSLContext.wrap_socket `.
3+ :meth: `ssl.SSLContext.wrap_socket `, but for backward compatiblity reasons
4+ emits :exc: `DeprecationWarning ` instead of :exc: `ValueError `.
45
56In particular, a context with :attr: `~ssl.SSLContext.check_hostname ` enabled
6- and no *server_hostname * passed to :meth: `!wrap_bio ` now raises :exc: `ValueError `
7- instead of completing a handshake that verified the certificate chain
8- without verifying the peer's identity, with no indication that the
9- check had been skipped.
7+ and no *server_hostname * passed to :meth: `!wrap_bio ` now emits
8+ :exc: `DeprecationWarning ` to indicate the hostname wasn't checked.
9+ (In Python 3.13 and later, this raises :exc: `ValueError `.)
You can’t perform that action at this time.
0 commit comments