Skip to content

Commit

Permalink
fix bug in status detection of analyze.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jvehent committed Oct 12, 2014
1 parent b846ac9 commit cdd34fc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cdd34fc

Please sign in to comment.