gh-131736: only apply security_level workaround in test_ssl for security levels greater than 1 (#131739)

This commit is contained in:
Will Childs-Klein 2025-04-01 03:58:47 -04:00 committed by GitHub
parent 23a658b9af
commit 3b3720f1a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: