logo       

callback functions getPin with pkcs11: msg#00220

encryption.opensc.devel

Subject: callback functions getPin with pkcs11

Hi,

I try to use callbacks function of pkcs15 with pkcs11, but I have some problem.

I can implement and use my callbacks functions getPin and getKey (sc_pkcs15init_callbacks) using the function sc_pkcs15init_set_callbacks but only when I use pkcs15 functions.

When I want to use pkcs11 API, and I try to use the callback function the pointer to my callback is everytime NULL (sc_pkcs15init_bind) when
profile->cbs = &callbacks.

I would like to this to create data object with C_CreateObject. Indeed, If my token has a Security officier pin code, I need to authenticate the token when the process creating the dof file (in my case 4405). But the callback function cannot be called.

The data object is well created, but not the dof (4405).

Idee?

Jean-Luc

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
OpenSC-devel mailing list
OpenSC-devel@xxxxxxxxxx
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise