mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
Remove a few redundant quotes in run_client_simulation()
This commit is contained in:
parent
c183c213e5
commit
31c5107a64
@ -4479,7 +4479,7 @@ run_client_simulation() {
|
|||||||
for name in "${short[@]}"; do
|
for name in "${short[@]}"; do
|
||||||
if "${current[i]}" || "$ALL_CLIENTS" ; then
|
if "${current[i]}" || "$ALL_CLIENTS" ; then
|
||||||
# for ANY we test this service or if the service we determined from STARTTLS matches
|
# for ANY we test this service or if the service we determined from STARTTLS matches
|
||||||
if [[ "${service[i]}" == "ANY" ]] || [[ "${service[i]}" =~ $client_service ]]; then
|
if [[ "${service[i]}" == ANY ]] || [[ "${service[i]}" =~ $client_service ]]; then
|
||||||
out " $(printf -- "%-29s" "${names[i]}")"
|
out " $(printf -- "%-29s" "${names[i]}")"
|
||||||
if "$using_sockets" && [[ -n "${handshakebytes[i]}" ]]; then
|
if "$using_sockets" && [[ -n "${handshakebytes[i]}" ]]; then
|
||||||
client_simulation_sockets "${handshakebytes[i]}"
|
client_simulation_sockets "${handshakebytes[i]}"
|
||||||
@ -4514,7 +4514,7 @@ run_client_simulation() {
|
|||||||
bits="${temp##*, }"
|
bits="${temp##*, }"
|
||||||
# formatting
|
# formatting
|
||||||
curve="${temp#*, }"
|
curve="${temp#*, }"
|
||||||
if [[ "$curve" == "$bits" ]]; then
|
if [[ "$curve" == $bits ]]; then
|
||||||
curve=""
|
curve=""
|
||||||
else
|
else
|
||||||
curve="${curve%%,*}"
|
curve="${curve%%,*}"
|
||||||
@ -4525,7 +4525,7 @@ run_client_simulation() {
|
|||||||
curve="$what_dh"
|
curve="$what_dh"
|
||||||
what_dh="ECDH"
|
what_dh="ECDH"
|
||||||
fi
|
fi
|
||||||
if [[ "$what_dh" == "DH" ]]; then
|
if [[ "$what_dh" == DH ]]; then
|
||||||
[[ ${minDhBits[i]} -ne -1 ]] && [[ $bits -lt ${minDhBits[i]} ]] && sclient_success=1
|
[[ ${minDhBits[i]} -ne -1 ]] && [[ $bits -lt ${minDhBits[i]} ]] && sclient_success=1
|
||||||
[[ ${maxDhBits[i]} -ne -1 ]] && [[ $bits -gt ${maxDhBits[i]} ]] && sclient_success=1
|
[[ ${maxDhBits[i]} -ne -1 ]] && [[ $bits -gt ${maxDhBits[i]} ]] && sclient_success=1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user