From 6f55a4d08b8ae9578e2b962af1ca6381e38d2dd2 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Thu, 7 Apr 2022 13:44:42 -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 70ebd67..c19d752 100755 --- a/testssl.sh +++ b/testssl.sh @@ -10517,7 +10517,10 @@ run_fs() { 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