From 62ce04adf093466065864d6b478e9b873c251d15 Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 28 Jun 2017 20:28:23 +0200 Subject: [PATCH] remove redundant option "false" in --warnings --- testssl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testssl.sh b/testssl.sh index 638b9b7..7b3ab71 100755 --- a/testssl.sh +++ b/testssl.sh @@ -176,6 +176,7 @@ QUIET=${QUIET:-false} # don't output the banner. By doing this SSL_NATIVE=${SSL_NATIVE:-false} # we do per default bash sockets where possible "true": switch back to "openssl native" ASSUME_HTTP=${ASSUME_HTTP:-false} # in seldom cases (WAF, old servers, grumpy SSL) service detection fails. "True" enforces HTTP checks BUGS=${BUGS:-""} # -bugs option from openssl, needed for some BIG IP F5 +WARNINGS=${WARNINGS:-""} # can be either off or batch DEBUG=${DEBUG:-0} # 1: normal putput the files in /tmp/ are kept for further debugging purposes # 2: list more what's going on , also lists some errors of connections # 3: slight hexdumps + other info, @@ -11513,7 +11514,6 @@ ignore_no_or_lame() { local a [[ "$WARNINGS" == off ]] && return 0 - [[ "$WARNINGS" == false ]] && return 0 [[ "$WARNINGS" == batch ]] && return 1 tm_warning "$1 --> " read a @@ -13011,8 +13011,8 @@ parse_cmd_line() { WARNINGS=$(parse_opt_equal_sign "$1" "$2") [[ $? -eq 0 ]] && shift case "$WARNINGS" in - batch|off|false) ;; - *) tmln_magenta "\nwarnings can be either \"batch\", \"off\" or \"false\"" + batch|off) ;; + *) tmln_magenta "\nwarnings can be either \"batch\", or \"off\"" help 1 esac ;;