var name append_fileout is clearer

This commit is contained in:
Dirk
2026-05-29 10:53:28 +02:00
parent 566e1b1f65
commit 1ee1a60a99
+8 -8
View File
@@ -5244,7 +5244,7 @@ run_client_simulation() {
local -i ret=0 local -i ret=0
local jsonID="clientsimulation" local jsonID="clientsimulation"
local client_service="" local client_service=""
local appendfile="" local append_fileout=""
# source the external file # source the external file
. "$TESTSSL_INSTALL_DIR/etc/client-simulation.txt" 2>/dev/null . "$TESTSSL_INSTALL_DIR/etc/client-simulation.txt" 2>/dev/null
@@ -5442,31 +5442,31 @@ run_client_simulation() {
fi fi
if [[ "$DISPLAY_CIPHERNAMES" =~ openssl ]]; then if [[ "$DISPLAY_CIPHERNAMES" =~ openssl ]]; then
print_n_spaces "$((34-${#cipher}))" print_n_spaces "$((34-${#cipher}))"
appendfile="$(print_n_spaces $((34-${#cipher})))" append_fileout="$(print_n_spaces $((34-${#cipher})))"
else else
print_n_spaces "$((50-${#cipher}))" print_n_spaces "$((50-${#cipher}))"
appendfile="$(print_n_spaces $((50-${#cipher})))" append_fileout="$(print_n_spaces $((50-${#cipher})))"
fi fi
if [[ -n "$what_dh" ]]; then if [[ -n "$what_dh" ]]; then
[[ -n "$curve" ]] && curve="($curve)" [[ -n "$curve" ]] && curve="($curve)"
if [[ "$what_dh" =~ MLKEM ]] || [[ "$what_dh" =~ Kyber ]]; then if [[ "$what_dh" =~ MLKEM ]] || [[ "$what_dh" =~ Kyber ]]; then
pr_kem_quality "$bits" "$(printf -- "%-12s" "$what_dh")" pr_kem_quality "$bits" "$(printf -- "%-12s" "$what_dh")"
appendfile+="$(printf -- "%-12s" "$what_dh")" append_fileout+="$(printf -- "%-12s" "$what_dh")"
elif [[ "$what_dh" == ECDH ]]; then elif [[ "$what_dh" == ECDH ]]; then
pr_ecdh_quality "$bits" "$(printf -- "%-12s" "$bits bit $what_dh") $curve" 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 else
pr_dh_quality "$bits" "$(printf -- "%-12s" "$bits bit $what_dh") $curve" 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 fi
else else
if "$HAS_DH_BITS" || { "$using_sockets" && [[ -n "${handshakebytes[i]}" ]]; }; then if "$HAS_DH_BITS" || { "$using_sockets" && [[ -n "${handshakebytes[i]}" ]]; }; then
out "No FS" out "No FS"
appendfile+="no FS" append_fileout+="no FS"
fi fi
fi fi
outln 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 # Just one "finding" with all the data has space for improvements
debugme cat $TMPFILE debugme cat $TMPFILE
fi fi