[Pcsclite-muscle] [PATCH] ContextThread: SCARD_TRANSMIT: work around CT API recv buffer size of 64k

Marcin Cieslak saper
Tue Dec 29 12:21:12 PST 2015


On Tue, 8 Dec 2015, Ludovic Rousseau wrote:

> Hello,
> 
> Why can't you fix the problem in the CT-API ifdhandler?
> You can use the same patch in IFDHTransmitToICC() [1] of your driver.
> 
> I don't think the problem is on the pcsc-lite side.
> Please fix your IFDHandler driver.

Well, of course the source of the problem is the CT-API and
its openct (currently dead) implementation. There is no
doubt about this.

But the change in pcscd, while technically correct, has
introduced a serious interoperability problem.

I wish there would be a way for the IFD driver to say
"I support extended APDUs and large transfers". That
would be a much better solution. (Maybe there is a way?
I'm not an expert on the PC/SC family of standards).

It reminds me of the situation in the packet networks -
- in the old times there were links that could not push
packets larger than, say, 1002 bytes and nobody insists
(even today!) that Ethernet jumboframes have to be pushed via
typical serial links.

I believe that good engineering should take such factors
into account.

Marcin




More information about the pcsclite-muscle mailing list