mirror of
https://github.com/httpie/cli.git
synced 2024-11-24 16:53:35 +01:00
Clean up DEFAULT_SSL_CIPHERS
comments
This commit is contained in:
parent
4e29a6d561
commit
d021b94b5d
@ -8,10 +8,12 @@ from urllib3.util.ssl_ import (
|
||||
resolve_ssl_version,
|
||||
)
|
||||
|
||||
|
||||
# Default ciphers imported from urllib3 as a work around for https://github.com/httpie/httpie/issues/1499
|
||||
# Removed from urllib3 in this commit: https://github.com/urllib3/urllib3/commit/e5eac0c
|
||||
####################
|
||||
# We used to import default SSL ciphers via `SSL_CIPHERS` from `urllib3` but it’s been removed,
|
||||
# so we’ve copied the original list here.
|
||||
# Our issue: <https://github.com/httpie/httpie/issues/1499>
|
||||
# Removal commit: <https://github.com/urllib3/urllib3/commit/e5eac0c>
|
||||
DEFAULT_SSL_CIPHERS = ":".join([
|
||||
# <urllib3>
|
||||
# A secure default.
|
||||
# Sources for more information on TLS ciphers:
|
||||
#
|
||||
@ -29,8 +31,6 @@ from urllib3.util.ssl_ import (
|
||||
# insecure ciphers for security reasons.
|
||||
# - NOTE: TLS 1.3 cipher suites are managed through a different interface
|
||||
# not exposed by CPython (yet!) and are enabled by default if they're available.
|
||||
DEFAULT_SSL_CIPHERS = ":".join(
|
||||
[
|
||||
"ECDHE+AESGCM",
|
||||
"ECDHE+CHACHA20",
|
||||
"DHE+AESGCM",
|
||||
@ -46,8 +46,8 @@ DEFAULT_SSL_CIPHERS = ":".join(
|
||||
"!MD5",
|
||||
"!DSS",
|
||||
"!AESCCM",
|
||||
]
|
||||
)
|
||||
# </urllib3>
|
||||
])
|
||||
SSL_VERSION_ARG_MAPPING = {
|
||||
'ssl2.3': 'PROTOCOL_SSLv23',
|
||||
'ssl3': 'PROTOCOL_SSLv3',
|
||||
|
Loading…
Reference in New Issue
Block a user