mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
crypto: fix initialization of crypto in tests
The test-io-channel-tls test was missing a call to qcrypto_init and test-crypto-hash was initializing it multiple times, Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
48b95ea4f0
commit
d26d6b5d34
2 changed files with 5 additions and 10 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "io/channel-tls.h"
|
||||
#include "io/channel-socket.h"
|
||||
#include "io-channel-helpers.h"
|
||||
#include "crypto/init.h"
|
||||
#include "crypto/tlscredsx509.h"
|
||||
#include "qemu/acl.h"
|
||||
#include "qom/object_interfaces.h"
|
||||
|
@ -265,6 +266,8 @@ int main(int argc, char **argv)
|
|||
{
|
||||
int ret;
|
||||
|
||||
g_assert(qcrypto_init(NULL) == 0);
|
||||
|
||||
module_call_init(MODULE_INIT_QOM);
|
||||
g_test_init(&argc, &argv, NULL);
|
||||
setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue