Hello Emanuele, On Sat, 2010-08-21 at 01:27 +0200, Emanuele Pucciarelli wrote: > On Tue, Aug 17, 2010 at 17:52, Andre Zepezauer > <andre.zepeza...@student.uni-halle.de> wrote: > > [about improving SELECT FILE in iso7816.c] > > > It would be nice, if the driver could be configured in a way to support > > such a scenario. The bits responsible for card detection should be > > placed in a function not part of the driver. > > FWIW, just to get one more data point, I have experimented this with > the two payments card I have. Both are EMV cards and have 31:c0 in > their historical bytes, meaning (according to the humble summaries of > 7816-4 that Google finds for me) they will only support application > selection by full or partial name. > > In fact, P1==04h is the only value that works for me with them; with > the current trunk you can use "info aid:xx:yy:zz..." to get some > information.
What's the response to the select commands. Please can you post one. Contains it something like that: A5:07:9F:65:04:02:02:01:01 Important are the tags A5 and 9F65. If they are present, then it is most likely that your card is a GlobalPlatform one. > The info isn't exceedingly useful yet; the next steps are interpreting > the file type correctly and adding the capability to issue file > commands to that file by SFI. (It's in place in the API, e.g. through > the "flags" argument of sc_read_record(), but not in opensc-explorer.) > > Bye, > _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel