Skip to content

Commit cd89134

Browse files
authored
OpenSSL compatibility fix
OpenSSL 3.0.X uses different names for some elliptic cures in the "Server Temp Key" line than previous previous versions. This commit addresses this issue by checking for both names.
1 parent bc2c8d6 commit cd89134

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

testssl.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9846,7 +9846,10 @@ run_pfs() {
98469846
curve_found="${curve_found%%,*}"
98479847
fi
98489848
for (( i=low; i < high; i++ )); do
9849-
! "${supported_curve[i]}" && [[ "${curves_ossl_output[i]}" == "$curve_found" ]] && break
9849+
if ! "${supported_curve[i]}"; then
9850+
[[ "${curves_ossl_output[i]}" == "$curve_found" ]] && break
9851+
[[ "${curves_ossl[i]}" == "$curve_found" ]] && break
9852+
fi
98509853
done
98519854
[[ $i -eq $high ]] && break
98529855
supported_curve[i]=true

0 commit comments

Comments
 (0)