Skip to content

Commit 5af152d

Browse files
committed
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.
1 parent e3b3c35 commit 5af152d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

testssl.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ s_client_options() {
23062306
fi
23072307
fi
23082308
fi
2309-
2309+
23102310
# In case of mutual TLS authentication is required by the server
23112311
# Note: the PEM certificate file must contain: client certificate and key (not encrypted)
23122312
if [[ -n "$MTLS" ]]; then
@@ -23585,7 +23585,8 @@ parse_cmd_line() {
2358523585
FNAME="$(parse_opt_equal_sign "$1" "$2")"
2358623586
[[ $? -eq 0 ]] && shift
2358723587
IKNOW_FNAME=true
23588-
WARNINGS="batch" # set this implicitly!
23588+
# If WARNINGS was set to "off, we shouldn't overwrite it, see #2496. "batch" is set implicitly otherwise
23589+
[[ "$WARNINGS" != off ]] && WARNINGS="batch"
2358923590
do_mass_testing=true
2359023591
;;
2359123592
--mode|--mode=*)

0 commit comments

Comments
 (0)