This commit is contained in:
Dirk 2017-03-27 17:35:45 +02:00
parent bcc597dbab
commit 38cf16854d
1 changed files with 4 additions and 2 deletions

View File

@ -3684,6 +3684,7 @@ run_client_simulation() {
bits=$(awk -F',' '{ print $3 }' <<< $temp)
grep -q bits <<< $bits || bits=$(awk -F',' '{ print $2 }' <<< $temp)
bits="${bits/bits/}"
bits="${bits// /}"
if [[ "$what_dh" == "DH" ]]; then
[[ ${minDhBits[i]} -ne -1 ]] && [[ $bits -lt ${minDhBits[i]} ]] && sclient_success=1
[[ ${maxDhBits[i]} -ne -1 ]] && [[ $bits -gt ${maxDhBits[i]} ]] && sclient_success=1
@ -4294,6 +4295,7 @@ read_dhbits_from_file() {
bits=$(awk -F',' '{ print $2 }' <<< $temp)
fi
bits="${bits/bits/}"
bits="${bits// /}"
if [[ "$what_dh" == "X25519" ]] || [[ "$what_dh" == "X448" ]]; then
curve="$what_dh"