Re: gnome-keyring Multiple libraries using PKCS#11 modules and CKR_ALREADY_INITIALIZED
- From: Nikos Mavrogiannopoulos <nmav gnutls org>
- To: Stef Walter <stefw collabora co uk>
- Cc: "gnome-keyring-list gnome org" <gnome-keyring-list gnome org>
- Subject: Re: gnome-keyring Multiple libraries using PKCS#11 modules and CKR_ALREADY_INITIALIZED
- Date: Wed, 19 Jan 2011 09:52:39 +0100
On 01/19/2011 03:41 AM, Stef Walter wrote:
> With the integration of PKCS#11 into various places we're running into
> the problem of initializing a library multiple times. When PKCS#11 was
> used in isolated cases this wasn't a problem.
>
> Each library (eg: gnutls, libgcr, glib-networking, pakchois, etc.) is
> trying to load a PKCS#11 module and run CK_Initialize. The modules then
> return CKR_ALREADY_INITIALIZED for that process.
>
> In my opinion most users of PKCS#11 (unless they have very special
> requirements) should treat CKR_ALREADY_INITIALIZED as a success status.
> Does that make sense?
It makes. However would that then mean that the CK_Finalize function
shouldn't be called if this error code is detected?
regards,
Nikos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]