From f3ddbe040a356bdc7ac4be5a7fe89599ff7f50c8 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 20 Feb 2011 11:08:14 +0100 Subject: Make CKR_CRYPTOKI_ALREADY_INITIALIZED be optional. --- src/module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/module.c b/src/module.c index e3008f3..3959161 100644 --- a/src/module.c +++ b/src/module.c @@ -408,7 +408,9 @@ p11t_module_initialize(void) if(p11t_test_unexpected) { rv = (p11t_module_funcs->C_Initialize) (&init_args); - P11T_CHECK_RV("Double initialize in a row", rv, CKR_CRYPTOKI_ALREADY_INITIALIZED); + if (rv != CKR_CRYPTOKI_ALREADY_INITIALIZED) { + p11t_check_warn ("Expected CKR_CRYPTOKI_ALREADY_INITIALIZED when double initialize in a row"); + } } is_initialized = 1; -- cgit v1.2.3