Re: gnome-keyring Multiple libraries using PKCS#11 modules and CKR_ALREADY_INITIALIZED



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]