From cd891343383d5ca756c19467fa493926a476878d Mon Sep 17 00:00:00 2001 From: David Cooper Date: Thu, 7 Apr 2022 14:31:40 -0400 Subject: [PATCH] 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. --- testssl.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 6c5d622..afe4b09 100755 --- a/testssl.sh +++ b/testssl.sh @@ -9846,7 +9846,10 @@ run_pfs() { curve_found="${curve_found%%,*}" fi 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 [[ $i -eq $high ]] && break supported_curve[i]=true