[Pcsclite-cvs-commit] r5325 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Oct 19 08:11:48 UTC 2010
Author: rousseau
Date: Tue Oct 19 08:11:41 2010
New Revision: 5325
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5325
Log:
get_IFSC(): 0xFF is not a valid value for IFSC according to ISO 7816-3,
CCID and MasterCard standards. The maximum value is 0xFE.
The "TIVU SAT" from ITALY www.tivu.tv card has such an IFSC in its ATR:
3F FF 95 00 FF 91 81 71 FF 47 00 54 49 47 45 52 30 30 33 20 52 65 76 32 35 30 64
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=5325&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Tue Oct 19 08:11:41 2010
@@ -2022,6 +2022,13 @@
}
}
+ if (ifsc > 254)
+ {
+ /* 0xFF is not a valid value for IFSC */
+ DEBUG_INFO2("Non ISO IFSC: 0x%X", ifsc);
+ ifsc = 254;
+ }
+
return ifsc;
} /* get_IFSC */
More information about the Pcsclite-cvs-commit
mailing list