• 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
..
NEWS.d Loading commit data...
ACKS Loading commit data...
HISTORY Loading commit data...
Porting Loading commit data...
README Loading commit data...
README.AIX Loading commit data...
README.coverity Loading commit data...
README.valgrind Loading commit data...
SpecialBuilds.txt Loading commit data...
coverity_model.c Loading commit data...
gdbinit Loading commit data...
indent.pro Loading commit data...
python-config.in Loading commit data...
python-config.sh.in Loading commit data...
python-wing3.wpr Loading commit data...
python-wing4.wpr Loading commit data...
python-wing5.wpr Loading commit data...
python.man Loading commit data...
python.pc.in Loading commit data...
svnmap.txt Loading commit data...
valgrind-python.supp Loading commit data...
vgrindefs Loading commit data...