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.
This commit is contained in:
David Cooper 2022-04-07 13:44:42 -04:00
parent 46b66c777a
commit 6f55a4d08b

View File

@ -10517,7 +10517,10 @@ run_fs() {
curve_found="${curve_found%%,*}" curve_found="${curve_found%%,*}"
fi fi
for (( i=low; i < high; i++ )); do for (( i=low; i < high; i++ )); do
! "${supported_curve[i]}" && [[ "${curves_ossl_output[i]}" == "$curve_found" ]] && break if ! "${supported_curve[i]}"; then
[[ "${curves_ossl_output[i]}" == "$curve_found" ]] && break
[[ "${curves_ossl[i]}" == "$curve_found" ]] && break
fi
done done
[[ $i -eq $high ]] && break [[ $i -eq $high ]] && break
supported_curve[i]=true supported_curve[i]=true