Skip to content
Myr

Removed deprecated TLS versions (#155)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by halbow · committed by Seth Michael Larson · parent 00e4fdb · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:httpx/config.py+2 added
145 unmodified lines
146 """147 context = ssl.SSLContext(ssl.PROTOCOL_TLS)148 context.options |= ssl.OP_NO_SSLv2149 context.options |= ssl.OP_NO_SSLv3150 context.options |= ssl.OP_NO_TLSv1151 context.options |= ssl.OP_NO_TLSv1_1152 context.options |= ssl.OP_NO_COMPRESSION153 context.set_ciphers(DEFAULT_CIPHERS)154155 if ssl.HAS_ALPN:
97 unmodified lines