Skip to content

Commit

Permalink
Use simpler algo that are supported by older OpenSSL versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Daniel Dupas committed Jul 8, 2019
1 parent 5ab9f34 commit 4688f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def test_get_sigalgs(self):
"""
def make_client(socket):
context = Context(TLSv1_2_METHOD)
context.set_sigalgs_list(b"RSA-PSS+SHA256:ECDSA+SHA384")
context.set_sigalgs_list(b"RSA+SHA256:ECDSA+SHA384")
c = Connection(context, socket)
c.set_connect_state()
return c
Expand All @@ -522,7 +522,7 @@ def make_client(socket):

sigalgs = srv.get_sigalgs()
if _lib.Cryptography_HAS_SIGALGS:
assert 0x0804 in sigalgs # rsa_pss_rsae_sha256
assert 0x0401 in sigalgs # rsa_pkcs1_sha256
assert 0x0503 in sigalgs # ecdsa_secp384r1_sha384
else:
# gracefully degrades on older OpenSSL versions
Expand Down

0 comments on commit 4688f4f

Please sign in to comment.