On 26/09/06, Nils Larsch <[EMAIL PROTECTED]> wrote:
Ludovic Rousseau wrote:
...
>> > I have also discovered that login in slot 0 works but fails in slot 1
>> > with CKR_USER_PIN_NOT_INITIALIZED even if "pkcs11-tool --list-slots"
>> > gives:
>> > Slot 0:
>> >  token flags:   login required, PIN initialized, token initialized
>> > Slot 1:
>> >  token flags:   PIN initialized, token initialized
>> >
>> > The returned error code comes from pkcs15_login() in
>> > pkcs11/framework-pkcs15.c
>> >
>> > Any idea why it fails?
>>
>> from a quick lock at framework-pkcs15.c I would say that the
>> CKF_USER_PIN_INITIALIZED flag is always set (see pkcs15_init_slot()).
>> The attached patch might fix this issue.
>
> That does not fix the issue. I now have:

of course, stupid typo ... please test the attached patch

That does not fix my problem but now the behavior is consistent. I now have:
Slot 0
 token flags:   login required, PIN initialized, token initialized
Slot 1
 token flags:   token initialized

But I still can't see any objects in slot 0. Even after presenting the PIN code.

Thanks

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

Reply via email to