Am Dienstag 03 Februar 2009 11:30:17 schrieb Ludovic Rousseau: > I looked at the code of ifd-ikey2k.c and ifd-etoken.c and they are far > from CCID.
well, openct is a very thin layer for those: get bytes from opensc, put those into t=1, and put the t=1 result back to opensc. t=1 calls the reader once or several times with some bytes, which are put into a usb control transfer, and the bytes received as answer are returned to t=1. > Maybe a better solution is to write a wrapper to use the existing > OpenCT drivers in pcsc-lite. Is such a layer already existing? yes. but that would keep everything. I'm thinking how we can use the existing t=1 in ccid and the ifdhandler frame that manages hotplugging and everything, and simply have a different list of supported devices and a different logic between t=1 and the usb interface. but I have no clue how much ifdhandler interface, t=1, usb logic and the rest in ccid is integrated, or if parts could be reused for a different driver. Regards, Andreas _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel