mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
[3.13] gh-131736: only apply security_level workaround in test_ssl for security levels greater than 1 (GH-131739) (#131967)
gh-131736: only apply `security_level` workaround in `test_ssl` for security levels greater than 1 (GH-131739)
(cherry picked from commit 3b3720f1a2)
Co-authored-by: Will Childs-Klein <willck93@gmail.com>
This commit is contained in:
parent
6ec9c753c7
commit
05e7fa2c2f
1 changed files with 2 additions and 1 deletions
|
|
@ -183,7 +183,8 @@ def seclevel_workaround(*ctxs):
|
|||
for ctx in ctxs:
|
||||
if (
|
||||
hasattr(ctx, "minimum_version") and
|
||||
ctx.minimum_version <= ssl.TLSVersion.TLSv1_1
|
||||
ctx.minimum_version <= ssl.TLSVersion.TLSv1_1 and
|
||||
ctx.security_level > 1
|
||||
):
|
||||
ctx.set_ciphers("@SECLEVEL=1:ALL")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue