diff options
author | Stef Walter <stef@memberwebs.com> | 2011-02-20 11:08:14 +0100 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2011-02-20 11:09:19 +0100 |
commit | f3ddbe040a356bdc7ac4be5a7fe89599ff7f50c8 (patch) | |
tree | 03ff865655cc873e3daf921b6ff961e1b37e1873 | |
parent | 531aa6c9793c92aefed270843e4cfe33ea62fb57 (diff) |
Make CKR_CRYPTOKI_ALREADY_INITIALIZED be optional.
-rw-r--r-- | src/module.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |