]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: skip tpm2.sh test for now if OpenSSL version 3 is detected
authorDaiki Ueno <ueno@gnu.org>
Wed, 5 Oct 2022 08:44:01 +0000 (17:44 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 22 Nov 2022 04:37:33 +0000 (13:37 +0900)
tpm2-tss-engine does not work well with OpenSSL 3 yet.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
tests/tpm2.sh

index 6f8e44c64bb15a14f8335da79dbcbfe71b15151f..ace3badcede4ff036034ceaa98d21ae2b9e18b0f 100755 (executable)
@@ -50,6 +50,15 @@ if [ -z "$(which base64 2>/dev/null)" ]; then
        exit 77
 fi
 
+: ${OPENSSL=openssl}
+
+case `"$OPENSSL" version` in
+    *OpenSSL\ 3*)
+       echo "This test is not yet compatible with OpenSSL 3."
+       exit 77
+       ;;
+esac
+
 if [ -z "$(which tpm2tss-genkey 2>/dev/null)" ]; then
        echo "Need tpm2tss-genkey from tpm2-tss-engine package to run this test."
        exit 77