mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-05 07:23:42 +01:00
fix bug in status detection of analyze.py
This commit is contained in:
parent
b846ac9d5b
commit
cdd34fce03
20
analyze.py
20
analyze.py
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user