Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Kalev Lember
On 07/01/2010 03:14 PM, Kalev Lember wrote: > On 07/01/2010 02:53 PM, Martin Paljak wrote: >> I don't see why would it be bad to expose the token info flags field itself. > > It might be fine. What my patch does is expose new flags _in the same > manner as existing flags are exposed_; if you want t

Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Kalev Lember
On 07/01/2010 02:53 PM, Martin Paljak wrote: > I don't see why would it be bad to expose the token info flags field itself. It might be fine. What my patch does is expose new flags _in the same manner as existing flags are exposed_; if you want to rework the libp11 API to give direct access to tok

Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Viktor TARASOV
Martin Paljak wrote: > On Jul 1, 2010, at 14:07 , Jean-Michel Pouré - GOOZE wrote: > >> I cannot lock my Feitian PKI card. >> > If you can not lock your card, why bother with unlocking :) > > >> Do you think tries left is implemented in the entersafe driver? >> > > No, entersafe dr

Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Martin Paljak
I don't see why would it be bad to expose the token info flags field itself. On Jul 1, 2010, at 14:36 , Kalev Lember wrote: > On 07/01/2010 01:28 PM, Martin Paljak wrote: >> for a PIN or if PIN verification fails with CKR_PIN_LOCKED (which is >> SC_ERROR_AUTH_METHOD_BLOCKED in libopensc). >> >

Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Kalev Lember
On 07/01/2010 01:28 PM, Martin Paljak wrote: > 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 > PI

Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Martin Paljak
On Jul 1, 2010, at 14:07 , Jean-Michel Pouré - GOOZE wrote: > I cannot lock my Feitian PKI card. If you can not lock your card, why bother with unlocking :) > Do you think tries left is implemented in the entersafe driver? No, entersafe driver does not seem to implement tries left handling, as

Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Jean-Michel Pouré - GOOZE
Dear Martin, I cannot lock my Feitian PKI card. Do you think tries left is implemented in the entersafe driver? Kind regards, Jean-Michel On Thu, 2010-07-01 at 13:28 +0300, Martin Paljak wrote: > When pkcs15-tool --list-pins shows for a zero tries left: > PIN [PIN2] > Com. Flags: 0x0 >

Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread JP Szikora
Jean-Michel Pouré - GOOZE a écrit : > Simple question, I found no answer. > > pkcs11-tool -I -l Cryptoki version 2.20 Manufacturer OpenSC (www.opensc-project.org) Library smart card PKCS#11 API (ver 0.0) Please enter User PIN: error: PKCS11 function C_Login failed: rv = CKR_PIN_LOCK

Re: [opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Martin Paljak
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, stor

[opensc-devel] How do we know that a card is locked and needs unblocking using PUK?

2010-07-01 Thread Jean-Michel Pouré - GOOZE
Simple question, I found no answer. Kind regards, Jean-Michel -- 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