File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -458,8 +458,8 @@ def test_set_cipher_list_no_cipher_match(self, context):
458
458
)
459
459
460
460
@pytest .mark .parametrize ("sigalgs_list" , [
461
- b"RSA-PSS +SHA256:RSA-PSS +SHA384" ,
462
- u"RSA-PSS +SHA256:RSA-PSS +SHA384" ,
461
+ b"RSA+SHA256:RSA+SHA384" ,
462
+ u"RSA+SHA256:RSA+SHA384" ,
463
463
])
464
464
def test_set_sigalgs_list (self , context , sigalgs_list ):
465
465
"""
@@ -488,13 +488,12 @@ def test_set_sigalgs_list_invalid_name(self, context):
488
488
489
489
def test_set_sigalgs_list_not_supported (self ):
490
490
"""
491
- `Context.set_cipher_list` raises `OpenSSL.SSL.Error` with a
492
- `"no cipher match"` reason string regardless of the TLS
493
- version.
491
+ If no signature algorithms supported by the server are set, the handshake
492
+ fails with a `"no suitable signature algorithm"` reason string.
494
493
"""
495
494
496
495
def make_client (socket ):
497
- context = Context (SSLv23_METHOD )
496
+ context = Context (TLSv1_2_METHOD )
498
497
context .set_sigalgs_list (b"ECDSA+SHA256:ECDSA+SHA384" )
499
498
c = Connection (context , socket )
500
499
c .set_connect_state ()
You can’t perform that action at this time.
0 commit comments