Christian Heimes <li...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44354>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to