mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
remove redundant option "false" in --warnings
This commit is contained in:
parent
9d699d1248
commit
62ce04adf0
@ -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"
|
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
|
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
|
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
|
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
|
# 2: list more what's going on , also lists some errors of connections
|
||||||
# 3: slight hexdumps + other info,
|
# 3: slight hexdumps + other info,
|
||||||
@ -11513,7 +11514,6 @@ ignore_no_or_lame() {
|
|||||||
local a
|
local a
|
||||||
|
|
||||||
[[ "$WARNINGS" == off ]] && return 0
|
[[ "$WARNINGS" == off ]] && return 0
|
||||||
[[ "$WARNINGS" == false ]] && return 0
|
|
||||||
[[ "$WARNINGS" == batch ]] && return 1
|
[[ "$WARNINGS" == batch ]] && return 1
|
||||||
tm_warning "$1 --> "
|
tm_warning "$1 --> "
|
||||||
read a
|
read a
|
||||||
@ -13011,8 +13011,8 @@ parse_cmd_line() {
|
|||||||
WARNINGS=$(parse_opt_equal_sign "$1" "$2")
|
WARNINGS=$(parse_opt_equal_sign "$1" "$2")
|
||||||
[[ $? -eq 0 ]] && shift
|
[[ $? -eq 0 ]] && shift
|
||||||
case "$WARNINGS" in
|
case "$WARNINGS" in
|
||||||
batch|off|false) ;;
|
batch|off) ;;
|
||||||
*) tmln_magenta "\nwarnings can be either \"batch\", \"off\" or \"false\""
|
*) tmln_magenta "\nwarnings can be either \"batch\", or \"off\""
|
||||||
help 1
|
help 1
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user