summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDaniel P. Berrangé2021-06-30 18:20:02 +0200
committerDaniel P. Berrangé2021-07-14 15:15:52 +0200
commitcc4c7c738297958b3d1d16269f57d71d22f5a9ff (patch)
tree745293c10a7fc32bb58355494b38f92357230511 /crypto
parentcrypto: flip priority of backends to prefer gcrypt (diff)
downloadqemu-cc4c7c738297958b3d1d16269f57d71d22f5a9ff.tar.gz
qemu-cc4c7c738297958b3d1d16269f57d71d22f5a9ff.tar.xz
qemu-cc4c7c738297958b3d1d16269f57d71d22f5a9ff.zip
crypto: introduce build system for gnutls crypto backend
This introduces the build logic needed to decide whether we can use gnutls as a crypto driver backend. The actual implementations will be introduced in following patches. We only wish to use gnutls if it has version 3.6.14 or newer, because that is what finally brings HW accelerated AES-XTS mode for x86_64. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/meson.build b/crypto/meson.build
index fc8de287e1..f3bab7c067 100644
--- a/crypto/meson.build
+++ b/crypto/meson.build
@@ -38,6 +38,9 @@ crypto_ss.add(when: gnutls, if_true: files('tls-cipher-suites.c'))
util_ss.add(files('aes.c'))
util_ss.add(files('init.c'))
+if gnutls.found()
+ util_ss.add(gnutls)
+endif
if gcrypt.found()
util_ss.add(gcrypt, files('random-gcrypt.c'))