summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-07 16:51:46 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-07 16:57:19 +0200
commit3fb228bd5507240f6116e6210e615a9458192df9 (patch)
tree824d975fe35411c50139071ff88e81209a93d195
parente6d2e4309e02a610c50d97147f8659f00a0eb346 (diff)
downloadgnutls-3fb228bd5507240f6116e6210e615a9458192df9.tar.gz
tests: use gnutls_global_init instead of global_init
The reason is to force initialization of the PKCS#11 backend, and thus support for any PKCS#11 trust store when setup. This fixes running the test suite in Fedora. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--tests/trust-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/trust-store.c b/tests/trust-store.c
index ae21998f6f..83f9dda6e9 100644
--- a/tests/trust-store.c
+++ b/tests/trust-store.c
@@ -47,7 +47,7 @@ void doit(void)
gnutls_certificate_credentials_t x509_cred;
int ret;
- global_init();
+ gnutls_global_init();
gnutls_global_set_log_function(tls_log_func);
if (debug)