From cdd34fce0301589201f22ed63672d3369965e4c5 Mon Sep 17 00:00:00 2001 From: Julien Vehent Date: Sat, 11 Oct 2014 20:45:14 -0400 Subject: [PATCH] fix bug in status detection of analyze.py --- analyze.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/analyze.py b/analyze.py index 5880d6a..991354b 100755 --- a/analyze.py +++ b/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"