mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-131736: only apply security_level workaround in test_ssl for security levels greater than 1 (#131739)
This commit is contained in:
parent
23a658b9af
commit
3b3720f1a2
1 changed files with 2 additions and 1 deletions
|
|
@ -155,7 +155,8 @@ if is_ubuntu():
|
|||
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