]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-24-CRYPTSETUP: depend on OpenSSL for testing PKCS#11 tokens
authorVladimir Stoiakin <VStoiakin@lavabit.com>
Sat, 6 Jan 2024 13:59:56 +0000 (16:59 +0300)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 6 Jan 2024 20:26:54 +0000 (05:26 +0900)
test/TEST-24-CRYPTSETUP/test.sh

index a6739eee1cd104824df627c83f2e13bbd9bdecdb..a9c3e05d006246a38b65cf5d00efba808e2549e7 100755 (executable)
@@ -56,6 +56,10 @@ can_test_pkcs11() {
         ddebug "Support for p11-kit is disabled, skipping the PKCS#11 test"
         return 1
     fi
+    if ! "${SYSTEMCTL:?}" --version | grep -q "+OPENSSL"; then
+        ddebug "Support for openssl is disabled, skipping the PKCS#11 test"
+        return 1
+    fi
     if ! "${SYSTEMCTL:?}" --version | grep -q "+LIBCRYPTSETUP\b"; then
         ddebug "Support for libcryptsetup is disabled, skipping the PKCS#11 test"
         return 1