aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2018-07-17 17:54:17 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2018-07-24 17:33:39 +0100
commitdbddad702630bc2d8dd20f6d0d8076ccb8831a7f (patch)
treeb56d04174de8d48cd83f27e9cb65f844c0f85c2b /include
parent3bae150448dbd888a480f892ebbf01caec0d8329 (diff)
downloadqemu-dbddad702630bc2d8dd20f6d0d8076ccb8831a7f.zip
qemu-dbddad702630bc2d8dd20f6d0d8076ccb8831a7f.tar.gz
qemu-dbddad702630bc2d8dd20f6d0d8076ccb8831a7f.tar.bz2
tests: call qcrypto_init instead of gnutls_global_init
Calling qcrypto_init ensures that all relevant initialization is done. In particular this honours the debugging settings and thread settings. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/init.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/init.h b/include/crypto/init.h
index 04c1edf..f79c022 100644
--- a/include/crypto/init.h
+++ b/include/crypto/init.h
@@ -21,6 +21,8 @@
#ifndef QCRYPTO_INIT_H
#define QCRYPTO_INIT_H
+#include "qapi/error.h"
+
int qcrypto_init(Error **errp);
#endif /* QCRYPTO_INIT_H */