2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-12-26 12:43:42 +01:00

fix bug in status detection of analyze.py

This commit is contained in:
Julien Vehent 2014-10-11 20:45:14 -04:00
parent b846ac9d5b
commit cdd34fce03

View File

@ -260,20 +260,20 @@ def evaluate_all(results):
if len(results['ciphersuite']) == 0:
return "no"
if is_modern(results):
status = "modern"
if not is_ordered(results, modern_ciphers, "modern"):
status = "modern with bad ordering"
if is_old(results):
status = "old"
if not is_ordered(results, old_ciphers, "old"):
status = "old with bad ordering"
if is_intermediate(results):
status = "intermediate"
if not is_ordered(results, intermediate_ciphers, "intermediate"):
status = "intermediate with bad ordering"
if not is_ordered(results, intermediate_ciphers, "intermediate"):
status = "intermediate with bad ordering"
if is_old(results):
status = "old"
if not is_ordered(results, old_ciphers, "old"):
status = "old with bad ordering"
if is_modern(results):
status = "modern"
if not is_ordered(results, modern_ciphers, "modern"):
status = "modern with bad ordering"
if is_fubar(results):
status = "bad"