cpython/Doc/whatsnew
Christian Heimes 89c2051a55
[3.7] bpo-32951: Disable SSLSocket/SSLObject constructor (GH-5864) (#5925)
Direct instantiation of SSLSocket and SSLObject objects is now prohibited.
The constructors were never documented, tested, or designed as public
constructors. The SSLSocket constructor had limitations. For example it was
not possible to enabled hostname verification except was
ssl_version=PROTOCOL_TLS_CLIENT with cert_reqs=CERT_REQUIRED.

SSLContext.wrap_socket() and SSLContext.wrap_bio are the recommended API
to construct SSLSocket and SSLObject instances. ssl.wrap_socket() is
also deprecated.

The only test case for direct instantiation was added a couple of days
ago for IDNA testing.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 9d50ab563d)

Co-authored-by: Christian Heimes <christian@python.org>
2018-02-27 11:17:32 +01:00
..
2.0.rst Avoid line breaks after hyphens, otherwise they are turned into spaces 2017-01-14 08:24:20 +00:00
2.1.rst Merge doc fixes from 3.5 2017-01-14 09:54:57 +00:00
2.2.rst bpo-25910: Link redirections in docs (#1933) 2018-01-20 01:25:37 +01:00
2.3.rst bpo-25910: Link redirections in docs (#1933) 2018-01-20 01:25:37 +01:00
2.4.rst Avoid line breaks after hyphens, otherwise they are turned into spaces 2017-01-14 08:24:20 +00:00
2.5.rst bpo-25910: Link redirections in docs (#1933) 2018-01-20 01:25:37 +01:00
2.6.rst bpo-25910: Link redirections in docs (#1933) 2018-01-20 01:25:37 +01:00
2.7.rst bpo-25910: Link redirections in docs (#1933) 2018-01-20 01:25:37 +01:00
3.0.rst Issue #26638: Mask undefined CLI options to defeat new Sphinx warnings 2016-10-30 04:20:17 +00:00
3.1.rst Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
3.2.rst bpo-25910: Link redirections in docs (#1933) 2018-01-20 01:25:37 +01:00
3.3.rst Make formatting of some return codes conforming to the general style. (GH-5587) (GH-5597) 2018-02-09 14:08:04 +02:00
3.4.rst bpo-30737: Update DevGuide links to new URL (GH-3228) 2017-08-30 09:37:43 -07:00
3.5.rst bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122) 2017-02-22 08:45:51 +03:00
3.6.rst bpo-25910: Link redirections in docs (#1933) 2018-01-20 01:25:37 +01:00
3.7.rst [3.7] bpo-32951: Disable SSLSocket/SSLObject constructor (GH-5864) (#5925) 2018-02-27 11:17:32 +01:00
changelog.rst Include additional changes to support blurbified NEWS (#3340) 2017-09-05 00:46:18 -07:00
index.rst bpo-31458: Clarify that Changelog is built from Misc/NEWS.d directory (GH-3617) 2017-09-16 10:43:30 -07:00