From ddbb0d09661f5fce21b335ba9aea8202d189b98e Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 1 Jul 2015 18:10:29 +0100 Subject: crypto: introduce new module for computing hash digests Introduce a new crypto/ directory that will (eventually) contain all the cryptographic related code. This initially defines a wrapper for initializing gnutls and for computing hashes with gnutls. The former ensures that gnutls is guaranteed to be initialized exactly once in QEMU regardless of CLI args. The block quorum code currently fails to initialize gnutls so it only works by luck, if VNC server TLS is not requested. The hash APIs avoids the need to litter the rest of the code with preprocessor checks and simplifies callers by allocating the correct amount of memory for the requested hash. Signed-off-by: Daniel P. Berrange Message-Id: <1435770638-25715-2-git-send-email-berrange@redhat.com> Signed-off-by: Paolo Bonzini --- crypto/Makefile.objs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 crypto/Makefile.objs (limited to 'crypto/Makefile.objs') diff --git a/crypto/Makefile.objs b/crypto/Makefile.objs new file mode 100644 index 0000000000..03cc1b232d --- /dev/null +++ b/crypto/Makefile.objs @@ -0,0 +1,2 @@ +util-obj-y += init.o +util-obj-y += hash.o -- cgit v1.2.3