]> Git Repo - qemu.git/blobdiff - tests/test-io-channel-tls.c
aspeed/smc: reset flash after each test
[qemu.git] / tests / test-io-channel-tls.c
index 3c11a5097c6f67fcde97f753b89fb7324d072e08..bd3ae2bf7a47cd91daeacceeeea3626cbed06072 100644 (file)
  */
 
 
-#include <stdlib.h>
-#include <fcntl.h>
+#include "qemu/osdep.h"
 
-#include "config-host.h"
 #include "crypto-tls-x509-helpers.h"
 #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"
@@ -267,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);
This page took 0.024246 seconds and 4 git commands to generate.