2010/5/11 Viktor TARASOV <[email protected]>:
> Ludovic Rousseau wrote:
>> 2010/5/11 Viktor TARASOV <[email protected]>:
>>
>>>> I can send an OpenSC log file level=99 (200 KB uncompressed) if needed.
>>>> I use the current SVN version of OpenSC.
>>>>
>>> Please, do it.
>>>
>>
>> Attached. bzip2 compressed.
>>
>> I have a Feitian smart card and use the entersafe card driver.
>>
>> It may be an entersafe card driver bug.
>> log says:
>> 0xb7b476b0 16:40:59.112 [opensc-pkcs11]
>> iso7816.c:102:iso7816_check_sw: Security status not satisfied
>> 0xb7b476b0 16:40:59.112 [opensc-pkcs11]
>> card-entersafe.c:900:entersafe_compute_with_prkey: internal set
>> security env failed: Security status not satisfied
>> 0xb7b476b0 16:40:59.112 [opensc-pkcs11] sec.c:56:sc_compute_signature:
>> returning with: -1211
>>
> OK, thanks.
>
> I have this card and I'll look it before the end of
> this week (with 'Gemalto PC PinPad Reader').
I think you will need this patch to use the Gemalto pinpad:
Index: src/libopensc/card-entersafe.c
===================================================================
--- src/libopensc/card-entersafe.c (revision 4340)
+++ src/libopensc/card-entersafe.c (working copy)
@@ -938,7 +938,7 @@
{
pin->encoding = SC_PIN_ENCODING_ASCII;
pin->min_length = 4;
- pin->max_length = 16;
+ pin->max_length = 8;
pin->pad_length = 16;
pin->offset = 5 + num * 16;
pin->pad_char = 0x00;
The reader does not accept PIN longer than 8. I willl write about that
on my blog [1] later.
Bye
[1] http://ludovicrousseau.blogspot.com/
--
Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel