From: <op...@se...> - 2013-07-31 08:36:20
|
> > Here is the hack that works for me, in engine_pkcs11.c > [...] >> >> Slot id is not fixed in PKCS#11 to allow plug and play. What I suggest >> is using token serial number instead to consistent behavior. > > This is a very good idea, the point is that libp11, at least the version > that I have, must expose some more slot information in the first place. > The "_private" structure is unknown to the caller. > [...] I'd just point out that the function PKCS11_enumerate_slots should not acquire the token serials: that should be on demand (and possibly per-token), as the PKCS11_enumerate_slots only performs PKCS#11 functions up to C_GetSlotInfo and is not intended for accessing the tokens, just the slots. Ubi |