Thomas Grainger <tagr...@gmail.com> added the comment:
it looks like OP_NO_SSLv2 and OP_NO_SSLv3 are not raising a DeprecationWarning ``` python310 -W error Python 3.10.0b2 (default, Jun 2 2021, 00:22:18) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> ssl.SSLContext(ssl.PROTOCOL_TLS) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.10/ssl.py", line 501, in __new__ self = _SSLContext.__new__(cls, protocol) DeprecationWarning: ssl module: PROTOCOL_TLS is deprecated >>> ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) <ssl.SSLContext object at 0x7f2e567616c0> >>> c = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) >>> c.options |= ssl.OP_NO_SSLv2 # no deprecation warning!? >>> c.options |= ssl.OP_NO_SSLv3 # no deprecation warning!? >>> c.options |= ssl.OP_NO_TLSv1 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.10/ssl.py", line 621, in options super(SSLContext, SSLContext).options.__set__(self, value) DeprecationWarning: ssl module: Setting OP_NO_SSL* or SSL_NO_TLS* options is deprecated is deprecated ``` ---------- _______________________________________ 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