[issue44354] ssl deprecation warnings erganomics

Christian Heimes report at bugs.python.org
Thu Jun 10 08:10:46 EDT 2021


Christian Heimes <lists at cheimes.de> added the comment:

ctx.options |= ssl.OP_NO_SSLv2 and ctx.options |= ssl.OP_NO_SSLv3 are no-ops and don't modify the value of ctx.options. OP_NO_SSLv2 == 0 and OP_NO_SSLv3 is set by default:

>>> ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
>>> ctx.options
ssl.OP_NO_COMPRESSION|ssl.OP_ENABLE_MIDDLEBOX_COMPAT|ssl.OP_CIPHER_SERVER_PREFERENCE|ssl.OP_NO_SSLv3|0x80000054
>>> int(ssl.OP_NO_SSLv2)
0

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44354>
_______________________________________


More information about the Python-bugs-list mailing list