From 58d495e249e32a16aa4797c49fd4b8f596ce1c4d Mon Sep 17 00:00:00 2001 From: David Cooper Date: Fri, 19 Jan 2018 09:54:21 -0500 Subject: [PATCH] Fix #962 This commit fixes issue #962 by reordering the items in fileout_json_section() to match the order in which the tests are called in lets_roll(). --- testssl.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/testssl.sh b/testssl.sh index 74b5cb1..485dd3d 100755 --- a/testssl.sh +++ b/testssl.sh @@ -661,15 +661,15 @@ fileout_json_section() { case $1 in 1) echo -e " \"singleCipher\" : [" ;; 2) echo -e " \"protocols\" : [" ;; - 3) echo -e ",\n \"ciphers\" : [" ;; - 4) echo -e ",\n \"pfs\" : [" ;; - 5) echo -e ",\n \"serverPreferences\" : [" ;; - 6) echo -e ",\n \"serverDefaults\" : [" ;; - 7) echo -e ",\n \"headerResponse\" : [" ;; - 8) echo -e ",\n \"vulnerabilities\" : [" ;; - 9) echo -e ",\n \"cipherTests\" : [" ;; - 10) echo -e ",\n \"browserSimulations\": [" ;; - 11) echo -e ",\n \"grease\" : [" ;; + 3) echo -e ",\n \"grease\" : [" ;; + 4) echo -e ",\n \"ciphers\" : [" ;; + 5) echo -e ",\n \"pfs\" : [" ;; + 6) echo -e ",\n \"serverPreferences\" : [" ;; + 7) echo -e ",\n \"serverDefaults\" : [" ;; + 8) echo -e ",\n \"headerResponse\" : [" ;; + 9) echo -e ",\n \"vulnerabilities\" : [" ;; + 10) echo -e ",\n \"cipherTests\" : [" ;; + 11) echo -e ",\n \"browserSimulations\": [" ;; *) echo "invalid section" ;; esac }