mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
Merge pull request #817 from dcooper16/fileout_insert_warning
Use of fileout_insert_warning()
This commit is contained in:
commit
515844208f
@ -5012,7 +5012,7 @@ get_host_cert() {
|
|||||||
else
|
else
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
prln_warning "could not retrieve host certificate!"
|
prln_warning "could not retrieve host certificate!"
|
||||||
fileout_insert_warning "host_certificate" "WARN" "Could not retrieve host certificate!"
|
fileout "host_certificate_Problem" "WARN" "Could not retrieve host certificate!"
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -5066,7 +5066,7 @@ determine_trust() {
|
|||||||
[[ $OSSL_VER_MAJOR.$OSSL_VER_MINOR != "1.1.0" ]] && \
|
[[ $OSSL_VER_MAJOR.$OSSL_VER_MINOR != "1.1.0" ]] && \
|
||||||
[[ $OSSL_VER_MAJOR.$OSSL_VER_MINOR != "1.1.1" ]]; then
|
[[ $OSSL_VER_MAJOR.$OSSL_VER_MINOR != "1.1.1" ]]; then
|
||||||
addtl_warning="(Your $OPENSSL <= 1.0.2 might be too unreliable to determine trust)"
|
addtl_warning="(Your $OPENSSL <= 1.0.2 might be too unreliable to determine trust)"
|
||||||
fileout_insert_warning "${json_prefix}chain_of_trust_warn" "WARN" "$addtl_warning"
|
fileout "${json_prefix}chain_of_trust_warn" "WARN" "$addtl_warning"
|
||||||
fi
|
fi
|
||||||
debugme tmln_out
|
debugme tmln_out
|
||||||
|
|
||||||
@ -10368,7 +10368,7 @@ run_logjam() {
|
|||||||
if [[ ! -s "$common_primes_file" ]]; then
|
if [[ ! -s "$common_primes_file" ]]; then
|
||||||
prln_local_problem "couldn't read common primes file $common_primes_file"
|
prln_local_problem "couldn't read common primes file $common_primes_file"
|
||||||
out "${spaces}"
|
out "${spaces}"
|
||||||
fileout_insert_warning "LOGJAM_common primes" "WARN" "couldn't read common primes file $common_primes_file"
|
fileout "LOGJAM_common primes_Problem" "WARN" "couldn't read common primes file $common_primes_file"
|
||||||
ret=7
|
ret=7
|
||||||
else
|
else
|
||||||
dh_p="$(toupper "$dh_p")"
|
dh_p="$(toupper "$dh_p")"
|
||||||
|
Loading…
Reference in New Issue
Block a user