From c4c8ff443476926452c4981df3cf817ce4f04b5b Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 29 Dec 2017 23:14:14 +0100 Subject: [PATCH] fix needed answer "YES" in protocol section --- testssl.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index ef6e697..be44b43 100755 --- a/testssl.sh +++ b/testssl.sh @@ -14591,7 +14591,15 @@ ignore_no_or_lame() { [[ "$WARNINGS" == batch ]] && return 1 tm_warning "$1 --> " read a - if [[ "$a" == "$(tolower "$2")" ]]; then + if [[ "$2" == "$(toupper "$2")" ]]; then + # all uppercase requested + if [[ "$a" == "$2" ]]; then + return 0 + else + return 1 + fi + elif [[ "$2" == "$(tolower "$a")" ]]; then + # we normalize the word to continue return 0 else return 1