Skip to content

Commit 023fd02

Browse files
authored
Merge pull request #2625 from dcooper16/fix_x5519_and_x448_check
Fix checks for whether X25519 and X448 are supported
2 parents 0c71658 + a85073b commit 023fd02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20354,8 +20354,8 @@ find_openssl_binary() {
2035420354
$OPENSSL s_client -tls1_3 </dev/null 2>&1 | grep -aiq "unknown option" || HAS_TLS13=true
2035520355
$OPENSSL s_client -no_ssl2 </dev/null 2>&1 | grep -aiq "unknown option" || HAS_NO_SSL2=true
2035620356

20357-
$OPENSSL genpkey -algorithm X448 2>&1 | grep -aq "not found" || HAS_X448=true
20358-
$OPENSSL genpkey -algorithm X25519 2>&1 | grep -aq "not found" || HAS_X25519=true
20357+
$OPENSSL genpkey -algorithm X448 2>&1 | grep -Eaq "not found|unsupported" || HAS_X448=true
20358+
$OPENSSL genpkey -algorithm X25519 2>&1 | grep -Eaq "not found|unsupported" || HAS_X25519=true
2035920359
$OPENSSL pkey -help 2>&1 | grep -q Error || HAS_PKEY=true
2036020360
$OPENSSL pkeyutl 2>&1 | grep -q Error || HAS_PKUTIL=true
2036120361

0 commit comments

Comments
 (0)