From 9985957799fd7142125f1d2dd0fae4366ec83f32 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 31 Mar 2011 10:24:08 +0200 Subject: Custom initialization and finalization arguments cannot be supported. When multiple consumers are using a PKCS#11 module, initialization (and finalization) arguments cannot be supported. The first one calling would win out, and the others would get unexpected behavior. --- module/p11-kit-proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/p11-kit-proxy.c') diff --git a/module/p11-kit-proxy.c b/module/p11-kit-proxy.c index 3b43a5f..fd28a19 100644 --- a/module/p11-kit-proxy.c +++ b/module/p11-kit-proxy.c @@ -210,7 +210,7 @@ proxy_C_Finalize (CK_VOID_PTR reserved) _p11_lock (); /* WARNING: Reentrancy can occur here */ - rv = _p11_kit_finalize_registered_unlocked_reentrant (reserved); + rv = _p11_kit_finalize_registered_unlocked_reentrant (); /* * If modules are all gone, then this was the last @@ -305,7 +305,7 @@ proxy_C_Initialize (CK_VOID_PTR init_args) _p11_lock (); /* WARNING: Reentrancy can occur here */ - rv = _p11_kit_initialize_registered_unlocked_reentrant (init_args); + rv = _p11_kit_initialize_registered_unlocked_reentrant (); /* WARNING: Reentrancy can occur here */ if (rv == CKR_OK && !gl.mappings_refs == 0) -- cgit v1.1