For now I propose this small patch to permit "generate_key" with pkcs11-tool.
There are two cache one using pkcs15-pin.c with functions like sc_pkcs15_pincache_add and another one in keycache.c with functions like sc_keycache_put_pin. Opensc switch between the two style, pkcs15-pin seems more robust but sc_keycache_put_pin more convenient since pkcs15-pin refer to object and keycache use OP (SC_AC_OP_WRITE, SC_AC_OP_READ...) The challenge will be to group the two in one... They are still pkcs11 function not working properly (for me at least) pkcs11-tool -init-token return an error for me. François.
opensc-pkcs11-framework-pkcs15.patch
Description: opensc-pkcs11-framework-pkcs15.patch
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel