diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-03-31 10:24:08 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-03-31 10:24:08 +0200 |
commit | 9985957799fd7142125f1d2dd0fae4366ec83f32 (patch) | |
tree | 9bd5330ef59460ca4c152749593ab9ec1011a31d /module/p11-kit-proxy.c | |
parent | 1104f03d9b34cc659838124e00ac864c35af4f82 (diff) |
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.
Diffstat (limited to 'module/p11-kit-proxy.c')
-rw-r--r-- | module/p11-kit-proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |