mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
fix bug in status detection of analyze.py
This commit is contained in:
parent
b846ac9d5b
commit
cdd34fce03
16
analyze.py
16
analyze.py
@ -260,20 +260,20 @@ def evaluate_all(results):
|
|||||||
if len(results['ciphersuite']) == 0:
|
if len(results['ciphersuite']) == 0:
|
||||||
return "no"
|
return "no"
|
||||||
|
|
||||||
if is_modern(results):
|
if is_old(results):
|
||||||
status = "modern"
|
status = "old"
|
||||||
if not is_ordered(results, modern_ciphers, "modern"):
|
if not is_ordered(results, old_ciphers, "old"):
|
||||||
status = "modern with bad ordering"
|
status = "old with bad ordering"
|
||||||
|
|
||||||
if is_intermediate(results):
|
if is_intermediate(results):
|
||||||
status = "intermediate"
|
status = "intermediate"
|
||||||
if not is_ordered(results, intermediate_ciphers, "intermediate"):
|
if not is_ordered(results, intermediate_ciphers, "intermediate"):
|
||||||
status = "intermediate with bad ordering"
|
status = "intermediate with bad ordering"
|
||||||
|
|
||||||
if is_old(results):
|
if is_modern(results):
|
||||||
status = "old"
|
status = "modern"
|
||||||
if not is_ordered(results, old_ciphers, "old"):
|
if not is_ordered(results, modern_ciphers, "modern"):
|
||||||
status = "old with bad ordering"
|
status = "modern with bad ordering"
|
||||||
|
|
||||||
if is_fubar(results):
|
if is_fubar(results):
|
||||||
status = "bad"
|
status = "bad"
|
||||||
|
Loading…
Reference in New Issue
Block a user