> Have you tried my CCID driver [1] with such a card?

not in a character mode reader (it turns out that the "new" o2micro 
devices still have the descriptor bug and are not usable with ccid for 
pcsc. I do not know why it worked in openct).

your copy of openct's proto-t1.c does not have the bogus looking code:

         if (t1->block_oriented) {
         ....
         } else {
                 /* Get the header */
                 if (ifd_recv_response(prot, block, 3, timeout) < 0)
                         return -1;

                 n = block[2] + t1->rc_bytes;
                 if (n + 3 > rmax || block[2] >= 254) {
                         ct_error("receive buffer too small");
                         return -1;
                 }


ccid's t1_xcv does not bound block[2] at all.

_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to