diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2018-07-17 17:54:17 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2018-07-24 17:33:39 +0100 |
commit | dbddad702630bc2d8dd20f6d0d8076ccb8831a7f (patch) | |
tree | b56d04174de8d48cd83f27e9cb65f844c0f85c2b /tests | |
parent | 3bae150448dbd888a480f892ebbf01caec0d8329 (diff) | |
download | qemu-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 'tests')
-rw-r--r-- | tests/crypto-tls-x509-helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/crypto-tls-x509-helpers.c b/tests/crypto-tls-x509-helpers.c index 173d4e2..9b669c2 100644 --- a/tests/crypto-tls-x509-helpers.c +++ b/tests/crypto-tls-x509-helpers.c @@ -21,6 +21,7 @@ #include "qemu/osdep.h" #include "crypto-tls-x509-helpers.h" +#include "crypto/init.h" #include "qemu/sockets.h" #ifdef QCRYPTO_HAVE_TLS_TEST_SUPPORT @@ -95,7 +96,7 @@ static gnutls_x509_privkey_t test_tls_load_key(void) void test_tls_init(const char *keyfile) { - gnutls_global_init(); + qcrypto_init(&error_abort); if (asn1_array2tree(pkix_asn1_tab, &pkix_asn1, NULL) != ASN1_SUCCESS) { abort(); |