Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/test/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,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:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Only do seclevel workaround if seclevel greater than 1.
Loading