Le vendredi 18 février 2011 à 13:59 +0800, Xiaoshuo Wu a écrit :
> I've added SC_PIN_CMD_GET_INFO handling in entersafe_pin_cmd(),  
> C_GetTokenInfo() will get PIN retries now, you can run "pkcs11-tool  
> --test-hotplug" to see if PIN is locked.
> Regards, Xiaoshuo 

Dear Xiaoshuo,

Thank you very much for the patch. 
It applies and testes fine.

I could display a locked PIN:

pkcs11-tool --module /usr/lib/opensc-pkcs11.so --test-hotplug
Testing card detection using C_GetSlotList()
Please press return to continue, x to exit: 
Available slots:
Slot 0 (0xfffffffffffffffe): Virtual hotplug slot
  (empty)
Slot 1 (0x1): Feitian SCR301 00 00
  token label:   François Pérou (User PIN)
  token manuf:   EnterSafe
  token model:   PKCS#15
  token flags:   rng, login required, PIN initialized, token
initialized, user PIN locked
  serial num  :  2963094713181210
Slot 2 (0x2): Feitian SCR301 00 00
  (empty)
Slot 3 (0x3): Feitian SCR301 00 00
  (empty)
Slot 4 (0x4): Feitian SCR301 00 00
  (empty)

Could anyone apply this patch to trunk? Many thanks.

Kind regards,
-- 
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

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

Reply via email to