Skip to content

Commit 656726e

Browse files
authored
Merge pull request #2580 from drwetter/fix_2575
Fix json/csv output when STARTTLS problem is passed back
2 parents fee04f2 + 33fd749 commit 656726e

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

testssl.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5487,7 +5487,8 @@ run_protocols() {
54875487
fileout "$jsonID" "OK" "not offered"
54885488
add_proto_offered ssl2 no
54895489
;;
5490-
4) out "likely "; pr_svrty_best "not offered (OK), "
5490+
4) # STARTTLS problem
5491+
out "likely "; pr_svrty_best "not offered (OK), "
54915492
fileout "$jsonID" "OK" "likely not offered"
54925493
add_proto_offered ssl2 no
54935494
pr_warning "received 4xx/5xx after STARTTLS handshake"; outln "$debug_recomm"
@@ -5665,7 +5666,7 @@ run_protocols() {
56655666
pr_warning "TLS downgraded to STARTTLS plaintext"; outln
56665667
fileout "$jsonID" "WARN" "TLS downgraded to STARTTLS plaintext"
56675668
;;
5668-
4) out "likely not offered, "
5669+
4) out "likely not offered, " # STARTTLS problem
56695670
fileout "$jsonID" "INFO" "likely not offered"
56705671
add_proto_offered tls1 no
56715672
pr_warning "received 4xx/5xx after STARTTLS handshake"; outln "$debug_recomm"
@@ -5750,8 +5751,8 @@ run_protocols() {
57505751
pr_warning "TLS downgraded to STARTTLS plaintext"; outln
57515752
fileout "$jsonID" "WARN" "TLS downgraded to STARTTLS plaintext"
57525753
;;
5753-
4) out "likely not offered, "
5754-
fileout "$jsonID" "INFO" "not offered"
5754+
4) out "likely not offered, " # STARTTLS problem
5755+
fileout "$jsonID" "INFO" "likely not offered"
57555756
add_proto_offered tls1_1 no
57565757
pr_warning "received 4xx/5xx after STARTTLS handshake"; outln "$debug_recomm"
57575758
fileout "$jsonID" "WARN" "received 4xx/5xx after STARTTLS handshake${debug_recomm}"
@@ -6022,8 +6023,8 @@ run_protocols() {
60226023
pr_warning "TLS downgraded to STARTTLS plaintext"; outln
60236024
fileout "$jsonID" "WARN" "TLS downgraded to STARTTLS plaintext"
60246025
;;
6025-
4) out "likely not offered, "
6026-
fileout "$jsonID" "INFO" "not offered"
6026+
4) out "likely not offered, " # STARTTLS problem
6027+
fileout "$jsonID" "INFO" "likely not offered"
60276028
add_proto_offered tls1_3 no
60286029
pr_warning "received 4xx/5xx after STARTTLS handshake"; outln "$debug_recomm"
60296030
fileout "$jsonID" "WARN" "received 4xx/5xx after STARTTLS handshake${debug_recomm}"

0 commit comments

Comments
 (0)