Fix #983
This commit fixes #983 by ensuring that the line printed just before calling "return" prints a newline character. It also fixes the problem that no output is sent to the JSON/CSV file in some cases in which no fallback is possible since the server does not support two different protocols below TLSv1.3.
This commit is contained in:
parent
7bf070b016
commit
3084f241af
|
@ -12535,7 +12535,7 @@ run_tls_fallback_scsv() {
|
||||||
fileout "$jsonID" "HIGH" "only SSLv3 supported"
|
fileout "$jsonID" "HIGH" "only SSLv3 supported"
|
||||||
return 7
|
return 7
|
||||||
;;
|
;;
|
||||||
*) pr_svrty_good "No fallback possible, TLS 1.3 is the only protocol (OK)"
|
*) prln_svrty_good "No fallback possible, TLS 1.3 is the only protocol (OK)"
|
||||||
fileout "$jsonID" "OK" "only TLS 1.3 supported"
|
fileout "$jsonID" "OK" "only TLS 1.3 supported"
|
||||||
return 7
|
return 7
|
||||||
esac
|
esac
|
||||||
|
@ -12557,11 +12557,12 @@ run_tls_fallback_scsv() {
|
||||||
if [[ -z "$low_proto" ]]; then
|
if [[ -z "$low_proto" ]]; then
|
||||||
case "$high_proto" in
|
case "$high_proto" in
|
||||||
"tls1_2")
|
"tls1_2")
|
||||||
pr_svrty_good "No fallback possible, no protocol below $high_proto_str offered (OK)"
|
prln_svrty_good "No fallback possible, no protocol below $high_proto_str offered (OK)"
|
||||||
;;
|
;;
|
||||||
*) out "No fallback possible, no protocol below $high_proto_str offered (OK)"
|
*) outln "No fallback possible, no protocol below $high_proto_str offered (OK)"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fileout "$jsonID" "OK" "no protocol below $high_proto_str offered"
|
||||||
return 7
|
return 7
|
||||||
fi
|
fi
|
||||||
case "$low_proto" in
|
case "$low_proto" in
|
||||||
|
|
Loading…
Reference in New Issue