mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
Merge pull request #1030 from dcooper16/fix_dh_groups_output
Fix RFC 7919 DH groups
This commit is contained in:
commit
c357ea7356
22
testssl.sh
22
testssl.sh
@ -7983,9 +7983,11 @@ run_pfs() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "${ciph[i]}" == "DHE-"* ]] || [[ "${ciph[i]}" == TLS13* ]] || [[ "${ciph[i]}" == TLS_* ]] || ( "$using_sockets" && [[ "${rfc_ciph[i]}" == "TLS_DHE_"* ]] ); then
|
if [[ "${ciph[i]}" == "DHE-"* ]] || ( "$using_sockets" && [[ "${rfc_ciph[i]}" == "TLS_DHE_"* ]] ); then
|
||||||
ffdhe_offered=true
|
ffdhe_offered=true
|
||||||
ffdhe_cipher_list_hex+=", ${hexcode[i]}"
|
ffdhe_cipher_list_hex+=", ${hexcode[i]}"
|
||||||
|
elif [[ "${ciph[i]}" == TLS13* ]] || [[ "${ciph[i]}" == TLS_* ]]; then
|
||||||
|
ffdhe_cipher_list_hex+=", ${hexcode[i]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if "$WIDE"; then
|
if "$WIDE"; then
|
||||||
@ -8161,16 +8163,16 @@ run_pfs() {
|
|||||||
[[ $i -eq $nr_curves ]] && break
|
[[ $i -eq $nr_curves ]] && break
|
||||||
supported_curve[i]=true
|
supported_curve[i]=true
|
||||||
done
|
done
|
||||||
curves_offered=""
|
|
||||||
for (( i=0; i < nr_curves; i++ )); do
|
|
||||||
"${supported_curve[i]}" && curves_offered+="${ffdhe_groups_output[i]} "
|
|
||||||
done
|
|
||||||
if [[ -n "$curves_offered" ]]; then
|
|
||||||
pr_bold " RFC 7919 DH groups offered: "
|
|
||||||
outln "$curves_offered"
|
|
||||||
fileout "RFC7919_DH_groups" "INFO" "$curves_offered offered"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
curves_offered=""
|
||||||
|
for (( i=0; i < nr_curves; i++ )); do
|
||||||
|
"${supported_curve[i]}" && curves_offered+="${ffdhe_groups_output[i]} "
|
||||||
|
done
|
||||||
|
if [[ -n "$curves_offered" ]]; then
|
||||||
|
pr_bold " RFC 7919 DH groups offered: "
|
||||||
|
outln "$curves_offered"
|
||||||
|
fileout "RFC7919_DH_groups" "INFO" "$curves_offered"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
outln
|
outln
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user