Merge pull request #2662 from dcooper16/fix_ossl_supported_curve_check

Fix check for OpenSSL supported curves
This commit is contained in:
Dirk Wetter 2025-02-20 11:30:10 +01:00 committed by GitHub
commit ffa3e19764
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20505,7 +20505,7 @@ find_openssl_binary() {
HAS_CURVES=true HAS_CURVES=true
for curve in "${curves_ossl[@]}"; do for curve in "${curves_ossl[@]}"; do
# Same as above, we just don't need a port for invalid. # Same as above, we just don't need a port for invalid.
$OPENSSL s_client -curves $curve -connect $NXCONNECT </dev/null 2>&1 | grep -Eiaq "Error with command|unknown option" $OPENSSL s_client -curves $curve -connect $NXCONNECT </dev/null 2>&1 | grep -Eiaq "Error with command|unknown option|Call to SSL_CONF_cmd(.*) failed"
[[ $? -ne 0 ]] && OSSL_SUPPORTED_CURVES+=" $curve " [[ $? -ne 0 ]] && OSSL_SUPPORTED_CURVES+=" $curve "
done done
fi fi