]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Removed deprecated TLS versions (#155)
authorhalbow <39669025+halbow@users.noreply.github.com>
Sat, 27 Jul 2019 05:03:12 +0000 (07:03 +0200)
committerSeth Michael Larson <sethmichaellarson@gmail.com>
Sat, 27 Jul 2019 05:03:12 +0000 (00:03 -0500)
httpx/config.py

index 40e7cdc210756582d21cceb169a91ac7b1f979f3..de2b8058c8c8662819d54924c666ccfc443e4a25 100644 (file)
@@ -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)