@@ -999,19 +999,11 @@ def test_cipher_order(
999999
10001000 order_tuples = [
10011001 (
1002- CipherOrderStatus .sufficient_above_good ,
1003- cipher_evaluation .ciphers_bad + cipher_evaluation .ciphers_phase_out + cipher_evaluation .ciphers_sufficient ,
1004- # Make sure we do not mix in TLS 1.3 ciphers, all TLS 1.3 ciphers are good.
1005- cipher_evaluation .ciphers_good_no_tls13 ,
1002+ cipher_evaluation .ciphers_phase_out ,
1003+ cipher_evaluation .ciphers_sufficient + cipher_evaluation .ciphers_good_no_tls13 ,
10061004 ),
1007- (
1008- CipherOrderStatus .bad ,
1009- cipher_evaluation .ciphers_bad + cipher_evaluation .ciphers_phase_out ,
1010- cipher_evaluation .ciphers_sufficient ,
1011- ),
1012- (CipherOrderStatus .bad , cipher_evaluation .ciphers_bad , cipher_evaluation .ciphers_phase_out ),
10131005 ]
1014- for fail_status , expected_less_preferred , expected_more_preferred_list in order_tuples :
1006+ for expected_less_preferred , expected_more_preferred_list in order_tuples :
10151007 if cipher_order_violation :
10161008 break
10171009 # Sort CHACHA as later in the list, in case SSL_OP_PRIORITIZE_CHACHA is enabled #461
@@ -1035,10 +1027,10 @@ def test_cipher_order(
10351027 )
10361028 if preferred_suite != expected_more_preferred :
10371029 cipher_order_violation = [preferred_suite .name , expected_more_preferred .name ]
1038- status = fail_status
1030+ status = CipherOrderStatus . bad
10391031 log .info (
10401032 f"found cipher order violation for { server_connectivity_info .server_location .hostname } :"
1041- f" preferred { preferred_suite .name } instead of { expected_more_preferred .name } , status { fail_status } "
1033+ f" preferred { preferred_suite .name } instead of { expected_more_preferred .name } , status { status } "
10421034 )
10431035 break
10441036
0 commit comments