Hi,

it seems that the internal API 'framework' of the pkcs11 module can be simplified and be made more flexible
for the pkcs11 framework level.

My initial motivation is to give the access to the 'sc_pkcs11_slot' inside the framework operation 'login'.

And so I would like to change its prototype from
CK_RV (*login)(struct sc_pkcs11_card *, void *, CK_USER_TYPE, CK_CHAR_PTR, CK_ULONG);
to
CK_RV (*login)(struct sc_pkcs11_slot *, CK_USER_TYPE, CK_CHAR_PTR, CK_ULONG);


With that the actual call of this procedure:
   framework->login(slot->card, slot->fw_data, userType, pPin, ulPinLen);
will change to:
   framework->login(slot, userType, pPin, ulPinLen);


The same can be done for the other framework procedures 'logout', 'create_object', 'gen_keypair', ...


Any objections?

Kind wishes,
Viktor.


--
Viktor Tarasov  <viktor.tara...@opentrust.com>

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to