2011/11/9 Frank Morgner <morg...@informatik.hu-berlin.de>:
> Hi!
>
>> > Actually PACE is executed with SCardControl. The current implementation
>> > for control commands in OpenSC would not allow executing PACE, because
>> > reader-pcsc.c:237 always encodes an APDU. This is OK if you are only
>> > using PIN verification/modification (which require an encoded APDU). But
>> > it is impossible to use for PACE, because the input data is something
>> > very different than an APDU.
>> >
>> > I have already filed a bug on this topic and proposed a solution
>> > http://www.opensc-project.org/opensc/ticket/236
>>
>> Bug 236 "Better integration of SCardControl" has been closed with "wontfix" 
>> tag.
>> The discussion continued in bug 237 "Allow the transmit of a raw buffer".
>>
>> I can't comment on the proposed patch. If I am correct Martin proposed
>> (in [1] comment 16) to simplify the changes but nobody proposed a
>> patch for this.
>
> Ah yes, I forgot about that. It's already long ago... Anyway, the idea
> of sc_transmit_bytes has been given up in favor of sc_bytes2apdu, since
> all the opensc tools do not want to send an arbitrary buffer but an
> apdu.

Will you propose a new patch?

>> Do you need to use SCardTransmit() or SCardControl() at the PC/SC level?
>> OpenSC mixes SCardTransmit() and SCardControl(). Maybe a good
>> evolution would be to have separate functions.
>
> PACE needs SCardControl with 0x20. Yes, I think separating control and
> transmit would be a good idea. In OpenSC this is currently mixed,
> because every buffer sent (control or not) involves APDU parsing. That's
> why I advocated for not parsing the buffer. But you're right that
> separating the functionality entirely is a cleaner approach. Is there
> something similar to SCardControl in OpenCT?

I don't think we should care much about OpenCT support of an
SCardControl() equivalent. OpenCT use is strongly deprecated. I do not
expect to see a PACE reader supporting OpenCT but not PC/SC. A void or
empty control() function for OpenCT would be fine with me. The idea is
to have the code to compile with OpenCT but in a degraded mode.

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