Skip to content

Commit b4427dd

Browse files
Do not attempt to run integrity-only OpenSSL interop tests with OpenSSL < 3.4
1 parent 2be175f commit b4427dd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

scripts/openssl.test

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,17 @@ do
11641164
continue
11651165
fi
11661166

1167+
# Integrity-only cipher suites require OpenSSL 3.4 or later
1168+
$OPENSSL version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 | \
1169+
awk -F. '{if ($1 > 3 || ($1 == 3 && $2 >= 4)) exit 1; else exit 0;}'
1170+
if [ $? -eq 0 ]
1171+
then
1172+
echo -e "OpenSSL version too old for integrity-only ciphers, skipping"
1173+
tls13_cipher=
1174+
tls13_integrity_only=
1175+
continue
1176+
fi
1177+
11671178
# Test with RSA certs if available
11681179
if [ $openssl_pid != $no_pid -a "$wolf_rsa" != "" ]
11691180
then

0 commit comments

Comments
 (0)