This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author graingert
Recipients alex, christian.heimes, dstufft, graingert, janssen
Date 2021-06-10.12:01:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623326515.82.0.1986004455.issue44354@roundup.psfhosted.org>
In-reply-to
Content
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
```
History
Date User Action Args
2021-06-10 12:01:55graingertsetrecipients: + graingert, janssen, christian.heimes, alex, dstufft
2021-06-10 12:01:55graingertsetmessageid: <1623326515.82.0.1986004455.issue44354@roundup.psfhosted.org>
2021-06-10 12:01:55graingertlinkissue44354 messages
2021-06-10 12:01:54graingertcreate