From 829ba9d18329f05dae029dc0f787d9509f768ea0 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 21 Jul 2014 17:58:28 +0200 Subject: ignore CKR_CRYPTOKI_ALREADY_INITIALIZED when returned on reinitialization --- lib/pkcs11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pkcs11.c b/lib/pkcs11.c index 72fc22823f..56c3e71e76 100644 --- a/lib/pkcs11.c +++ b/lib/pkcs11.c @@ -565,7 +565,7 @@ int gnutls_pkcs11_reinit(void) if (providers[i].module != NULL) { rv = p11_kit_initialize_module(providers[i]. module); - if (rv != CKR_OK) + if (rv != CKR_OK && rv != CKR_CRYPTOKI_ALREADY_INITIALIZED) _gnutls_debug_log ("Cannot initialize registered module '%s': %s\n", providers[i].info.library_description, -- cgit v1.2.1