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):
458458 )
459459
460460 @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" ,
463463 ])
464464 def test_set_sigalgs_list (self , context , sigalgs_list ):
465465 """
@@ -488,13 +488,12 @@ def test_set_sigalgs_list_invalid_name(self, context):
488488
489489 def test_set_sigalgs_list_not_supported (self ):
490490 """
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.
494493 """
495494
496495 def make_client (socket ):
497- context = Context (SSLv23_METHOD )
496+ context = Context (TLSv1_2_METHOD )
498497 context .set_sigalgs_list (b"ECDSA+SHA256:ECDSA+SHA384" )
499498 c = Connection (context , socket )
500499 c .set_connect_state ()
You can’t perform that action at this time.
0 commit comments