Skip to content

Commit 4688f4f

Browse files
author
Jean-Daniel Dupas
committed
Use simpler algo that are supported by older OpenSSL versions.
1 parent 5ab9f34 commit 4688f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_ssl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def test_get_sigalgs(self):
511511
"""
512512
def make_client(socket):
513513
context = Context(TLSv1_2_METHOD)
514-
context.set_sigalgs_list(b"RSA-PSS+SHA256:ECDSA+SHA384")
514+
context.set_sigalgs_list(b"RSA+SHA256:ECDSA+SHA384")
515515
c = Connection(context, socket)
516516
c.set_connect_state()
517517
return c
@@ -522,7 +522,7 @@ def make_client(socket):
522522

523523
sigalgs = srv.get_sigalgs()
524524
if _lib.Cryptography_HAS_SIGALGS:
525-
assert 0x0804 in sigalgs # rsa_pss_rsae_sha256
525+
assert 0x0401 in sigalgs # rsa_pkcs1_sha256
526526
assert 0x0503 in sigalgs # ecdsa_secp384r1_sha384
527527
else:
528528
# gracefully degrades on older OpenSSL versions

0 commit comments

Comments
 (0)