• Christian Heimes's avatar
    bpo-32951: Disable SSLSocket/SSLObject constructor (#5864) · 9d50ab56
    Christian Heimes yazdı
    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: 's avatarChristian Heimes <christian@python.org>
    9d50ab56
Adı
Son kayıt (commit)
Son güncelleme
.github Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...