]> git.proxmox.com Git - mirror_qemu.git/commitdiff
crypto: ensure LUKS tests run with GNUTLS crypto provider
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 5 Sep 2022 13:37:05 +0000 (14:37 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 27 Oct 2022 12:06:11 +0000 (13:06 +0100)
GNUTLS is supported as a crypto provider since

  commit cc4c7c738297958b3d1d16269f57d71d22f5a9ff
  Author: Daniel P. Berrangé <berrange@redhat.com>
  Date:   Wed Jun 30 17:20:02 2021 +0100

    crypto: introduce build system for gnutls crypto backend

So enable the LUKS tests in this config.

Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/unit/test-crypto-block.c

index 3417b67be5d68f9e25cb5531c7e13cd73c0e5e94..3d50eb4b6e5ebe774a23fb5b983c2e0d7f4a0167 100644 (file)
@@ -30,7 +30,8 @@
 #endif
 
 #if (defined(_WIN32) || defined RUSAGE_THREAD) && \
-    (defined(CONFIG_NETTLE) || defined(CONFIG_GCRYPT))
+    (defined(CONFIG_NETTLE) || defined(CONFIG_GCRYPT) || \
+     defined(CONFIG_GNUTLS_CRYPTO))
 #define TEST_LUKS
 #else
 #undef TEST_LUKS