2011/6/8 Martin Paljak <mar...@martinpaljak.net>:
> On Wed, Jun 8, 2011 at 15:28, Ludovic Rousseau
> <ludovic.rouss...@gmail.com> wrote:
>
>> The problem is on byte 15.
>> Byte 15, 16 are wPINMaxExtraDigit
>> In the CCID frame it is 10 06
>> So Maximum PIN size = 10h = 16
>> and Minimum PIN size = 06h = 6
>>
>> The Gemalto Pinpad (v1) does not support Maximum PIN size bigger than
>> 8. See the notes in
>> http://pcsclite.alioth.debian.org/ccid/supported.html#0x08E60x3478
>>
>> Again the PCSCv2_PART10_PROPERTY_bMaxPINSize feature should be used
>> instead of a (hardcoded) value of 16. The OpenSC Feitian card driver
>> has the same problem.
>
> This would fix the problem for your CCID driver. To get OpenSC work
> "right" with a wide range of cards, readers, reader drivers and
> platforms, requires a LOT of testing and probably a lot of conditional
> code, unfortunately. At least this is my current understanding and
> experience.

I agree.
I also think that the best place to workaround firmware issues is
first in the driver (like swapping the length information) and then in
the application with the help of the driver (for example
PCSCv2_PART10_PROPERTY_bMaxPINSize).

But that would only solve problems when my CCID driver is used.
And my CCID driver does not (yet) work on Windows :-)

Bye

-- 
 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