diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-05-02 20:41:10 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-05-10 10:10:30 +0200 |
commit | b6a73eaae682255f748714a16ebadcab6d4787eb (patch) | |
tree | 436487fe5502537caf4dc71ecc16617dbaccee6f /tests | |
parent | 91dc5aac473c5c0b29bebe77774d412890dec32e (diff) | |
download | gnutls-b6a73eaae682255f748714a16ebadcab6d4787eb.tar.gz |
Do not call gnutls_pkcs11_init() when pkcs11 is disabled. Reported by Linus Nordberg.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/utils.h b/tests/utils.h index 702e3b6ab1..d156187f20 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -35,7 +35,9 @@ #endif inline static int global_init(void) { +#ifdef ENABLE_PKCS11 gnutls_pkcs11_init(GNUTLS_PKCS11_FLAG_MANUAL, NULL); +#endif return gnutls_global_init(); } |