Hi,

I'm working on the TCOS driver (support for new TCOS 3.0 cards)
and I noticed a problem with TCOS-cards in opensc-explorer. It
happens with both TCOS 2.0 and TCOS 3.0 cards.

cat 2f02  does not work and here's the relevant debug-output:

....
Outgoing APDU data [    8 bytes] =====================================
00 A4 00 00 02 2F 02 FF .€.../.ÿ
....
Incoming APDU data [    2 bytes] =====================================
6A 80 j.
....
unable to select file: Incorrect parameters in APDU

opensc-explorer tries to select the file with P1=00. With TCOS-cards this will
fail as P1=00 will only select 3F00 and requires Lc=0.

Why does opensc-explorer use a path with path->type=SC_PATH_TYPE_FILE_ID
instead of SC_PATH_TYPE_FROM_CURRENT which would make TCOS-cards happy?

Or must I change the TCOS-driver such that select-APDUs with P1=00 and
Lc>0 will be changed into P1=09.

Peter
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to