On Jul 1, 2010, at 12:47 , Jean-Michel Pouré - GOOZE wrote:

> Simple question, I found no answer.
Simple:

When pkcs15-tool --list-pins shows for a zero tries left:
PIN [PIN2]
        Com. Flags: 0x0
        ID        : 02
        Flags     : [0x00]
        Length    : min_len:5, max_len:12, stored_len:12
        Pad char  : 0x00
        Reference : 2
        Type      : ascii-numeric
        Path      : 
        Tries left: 3           <--------- the last field of PIN information

for a PIN or if PIN verification fails with CKR_PIN_LOCKED (which is 
SC_ERROR_AUTH_METHOD_BLOCKED in libopensc).

If triest left is implemented by the driver and available, CKF_USER_PIN_LOCKED 
token flag can also be used to detect a locked PIN via PKCS#11.

-- 
Martin Paljak
@martinpaljak.net
+3725156495

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

Reply via email to