session: add support for urllib3 2.0#5326
Conversation
3c77437 to
8342d40
Compare
|
@mkbloke could you please help test the |
|
a5ace12 to
5941e7c
Compare
|
I don't see any further urllib3 incompabilities.
urllib3 2.0.0 however now sets TLS1.2 as the min SSL/TLS version, up from TLS1.0: |
- Bump max version constraint from `<2` to `<3` - Fix `_PERCENT_RE` constant name in URL percent encoding override - Fix `StreamlinkOptions._set_http_disable_dh()`, remove the override of the old `urllib3.util._ssl.DEFAULT_CIPHERS` list and instead add `streamlink.plugin.api.http_session.TLSNoDHAdapter` which reads the ciphers returned by Python's default SSLContext, adds `:!DH` to the updated ciphers list, and finally replaces the HTTP session's `https://` adapter - Use `urllib3.util.create_urllib3_context()` for creating `SSLContext` objects in custom `HTTPAdapter`s
5941e7c to
1b30ad9
Compare
|
I did spend quite a bit of time last night looking at this, but have not as yet found anything too helpful. |
<2to<3_PERCENT_REconstant name in URL percent encoding overrideStreamlinkOptions._set_http_disable_dh(), remove the override of the oldurllib3.util._ssl.DEFAULT_CIPHERSlist and instead addstreamlink.plugin.api.http_session.TLSNoDHAdapterwhich reads the ciphers returned by Python's default SSLContext, adds:!DHto the updated ciphers list, and finally replaces the HTTP session'shttps://adapterurllib3.util.create_urllib3_context()for creatingSSLContextobjects in customHTTPAdaptersResolves #5324
urllib3 migration guide here:
https://urllib3.readthedocs.io/en/stable/v2-migration-guide.html