mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-30 20:31:15 +01:00
Address overwrite option to --file/-iL with warnings off
When choosing --file or -iL warnings were set in any case to --batch which needs e.g. crurrenly an interaction when do bacth scanning. This PR enables to supply WARNINgs / --warnings =off before so that the intercation is mot needed. See also #2496.
This commit is contained in:
parent
e3b3c358fd
commit
5af152d575
@ -2306,7 +2306,7 @@ s_client_options() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In case of mutual TLS authentication is required by the server
|
# In case of mutual TLS authentication is required by the server
|
||||||
# Note: the PEM certificate file must contain: client certificate and key (not encrypted)
|
# Note: the PEM certificate file must contain: client certificate and key (not encrypted)
|
||||||
if [[ -n "$MTLS" ]]; then
|
if [[ -n "$MTLS" ]]; then
|
||||||
@ -23585,7 +23585,8 @@ parse_cmd_line() {
|
|||||||
FNAME="$(parse_opt_equal_sign "$1" "$2")"
|
FNAME="$(parse_opt_equal_sign "$1" "$2")"
|
||||||
[[ $? -eq 0 ]] && shift
|
[[ $? -eq 0 ]] && shift
|
||||||
IKNOW_FNAME=true
|
IKNOW_FNAME=true
|
||||||
WARNINGS="batch" # set this implicitly!
|
# If WARNINGS was set to "off, we shouldn't overwrite it, see #2496. "batch" is set implicitly otherwise
|
||||||
|
[[ "$WARNINGS" != off ]] && WARNINGS="batch"
|
||||||
do_mass_testing=true
|
do_mass_testing=true
|
||||||
;;
|
;;
|
||||||
--mode|--mode=*)
|
--mode|--mode=*)
|
||||||
|
Loading…
Reference in New Issue
Block a user