mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-06-02 22:48:49 +02:00
var name append_fileout is clearer
This commit is contained in:
+8
-8
@@ -5244,7 +5244,7 @@ run_client_simulation() {
|
||||
local -i ret=0
|
||||
local jsonID="clientsimulation"
|
||||
local client_service=""
|
||||
local appendfile=""
|
||||
local append_fileout=""
|
||||
|
||||
# source the external file
|
||||
. "$TESTSSL_INSTALL_DIR/etc/client-simulation.txt" 2>/dev/null
|
||||
@@ -5442,31 +5442,31 @@ run_client_simulation() {
|
||||
fi
|
||||
if [[ "$DISPLAY_CIPHERNAMES" =~ openssl ]]; then
|
||||
print_n_spaces "$((34-${#cipher}))"
|
||||
appendfile="$(print_n_spaces $((34-${#cipher})))"
|
||||
append_fileout="$(print_n_spaces $((34-${#cipher})))"
|
||||
else
|
||||
print_n_spaces "$((50-${#cipher}))"
|
||||
appendfile="$(print_n_spaces $((50-${#cipher})))"
|
||||
append_fileout="$(print_n_spaces $((50-${#cipher})))"
|
||||
fi
|
||||
if [[ -n "$what_dh" ]]; then
|
||||
[[ -n "$curve" ]] && curve="($curve)"
|
||||
if [[ "$what_dh" =~ MLKEM ]] || [[ "$what_dh" =~ Kyber ]]; then
|
||||
pr_kem_quality "$bits" "$(printf -- "%-12s" "$what_dh")"
|
||||
appendfile+="$(printf -- "%-12s" "$what_dh")"
|
||||
append_fileout+="$(printf -- "%-12s" "$what_dh")"
|
||||
elif [[ "$what_dh" == ECDH ]]; then
|
||||
pr_ecdh_quality "$bits" "$(printf -- "%-12s" "$bits bit $what_dh") $curve"
|
||||
appendfile+="$(printf -- "%-12s" "$bits bit $what_dh") $curve"
|
||||
append_fileout+="$(printf -- "%-12s" "$bits bit $what_dh") $curve"
|
||||
else
|
||||
pr_dh_quality "$bits" "$(printf -- "%-12s" "$bits bit $what_dh") $curve"
|
||||
appendfile+="$(printf -- "%-12s" "$bits bit $what_dh") $curve"
|
||||
append_fileout+="$(printf -- "%-12s" "$bits bit $what_dh") $curve"
|
||||
fi
|
||||
else
|
||||
if "$HAS_DH_BITS" || { "$using_sockets" && [[ -n "${handshakebytes[i]}" ]]; }; then
|
||||
out "No FS"
|
||||
appendfile+="no FS"
|
||||
append_fileout+="no FS"
|
||||
fi
|
||||
fi
|
||||
outln
|
||||
fileout "${jsonID}-${short[i]}" "INFO" "$proto $cipher $appendfile"
|
||||
fileout "${jsonID}-${short[i]}" "INFO" "$proto $cipher $append_fileout"
|
||||
# Just one "finding" with all the data has space for improvements
|
||||
debugme cat $TMPFILE
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user