Message395524
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
``` |
|
Date |
User |
Action |
Args |
2021-06-10 12:01:55 | graingert | set | recipients:
+ graingert, janssen, christian.heimes, alex, dstufft |
2021-06-10 12:01:55 | graingert | set | messageid: <1623326515.82.0.1986004455.issue44354@roundup.psfhosted.org> |
2021-06-10 12:01:55 | graingert | link | issue44354 messages |
2021-06-10 12:01:54 | graingert | create | |
|