From: halbow <39669025+halbow@users.noreply.github.com> Date: Sat, 27 Jul 2019 05:03:12 +0000 (+0200) Subject: Removed deprecated TLS versions (#155) X-Git-Tag: 0.7.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f974ebd93e0e8a368b4a3a9f1d9155fe071f0905;p=thirdparty%2Fhttpx.git Removed deprecated TLS versions (#155) --- diff --git a/httpx/config.py b/httpx/config.py index 40e7cdc2..de2b8058 100644 --- a/httpx/config.py +++ b/httpx/config.py @@ -147,6 +147,8 @@ class SSLConfig: context = ssl.SSLContext(ssl.PROTOCOL_TLS) context.options |= ssl.OP_NO_SSLv2 context.options |= ssl.OP_NO_SSLv3 + context.options |= ssl.OP_NO_TLSv1 + context.options |= ssl.OP_NO_TLSv1_1 context.options |= ssl.OP_NO_COMPRESSION context.set_ciphers(DEFAULT_CIPHERS)