Skip to content

Commit

Permalink
better RSA-PSS libcrypto check
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose committed Apr 21, 2023
1 parent ece7aa3 commit 8b91df5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/integrationv2/test_client_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,8 @@ def test_tls_12_client_auth_downgrade(managed_process):
# The downgrade occurs because openssl-1.0.2 doesn't support RSA-PSS signature scheme.
#
# TLS 1.3 is disabled when s2n-tls is built with libressl and boringssl, so TLS 1.2 will be negotiated
# with these libcryptos as well. https://github.com/aws/s2n-tls/issues/3250
if any([
libcrypto_str in get_flag(S2N_PROVIDER_VERSION) for libcrypto_str in [
"openssl-1.0.2",
"libressl",
"boringssl"
]
]):
# with these libcryptos as well. See https://github.com/aws/s2n-tls/issues/3250.
if not S2N.supports_signature(Signatures.RSA_PSS_RSAE_SHA256):
expected_protocol_version = Protocols.TLS12.value
else:
expected_protocol_version = Protocols.TLS13.value
Expand Down

0 comments on commit 8b91df5

Please sign in to comment.