Hi,

> -----Original Message-----
> From: opensc-devel-boun...@lists.opensc-project.org
[mailto:opensc-devel-boun...@lists.opensc-project.org] On Behalf Of Andreas
Jellinghaus
> 
> not sure about athena, but many cards return the number
> of tries left, when you try to VERIFY a PIN. so if the
> PIN is wrong, the lower byte or nibble of the return code
> could be the number of tries left, and you can generate
> a messagebox from that.
 
This is also how the MyEID card works. For MyEID if you only want to know
the remaining PIN trials without trying a PIN,
then use the VERIFY command without any PIN code.
 
The response codes are:
0x9000 Verification successful and/or no AC acquired
0x6985 PIN locked – CONDITIONS NOT SATISFIED
0x6983 Verification failed and no number of retries left PIN blocked. 
0x63CX Verification failed and X number of retries left.

Kind regards,
Toni

> Good Luck!
> 
> Regards, Andreas


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

Reply via email to