[Pcsclite-cvs-commit] r3168 - /trunk/Drivers/ccid/src/towitoko/atr.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Oct 14 13:46:31 UTC 2008
Author: rousseau
Date: Tue Oct 14 13:46:31 2008
New Revision: 3168
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3168
Log:
ATR_InitFromArray(): do not reverse the ATR for inverse convention cards
since the ATR is already corrected by the reader
This never happend since the test was never true (TS == 0x03)
Modified:
trunk/Drivers/ccid/src/towitoko/atr.c
Modified: trunk/Drivers/ccid/src/towitoko/atr.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/towitoko/atr.c?rev=3168&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/towitoko/atr.c (original)
+++ trunk/Drivers/ccid/src/towitoko/atr.c Tue Oct 14 13:46:31 2008
@@ -72,13 +72,6 @@
if (length < 2)
return (ATR_MALFORMED);
- /* Check if ATR is from a inverse convention card */
- if (atr_buffer[0] == 0x03)
- {
- for (pointer = 0; pointer < length; pointer++)
- buffer[pointer] = ~(INVERT_BYTE (atr_buffer[pointer]));
- }
- else
memcpy (buffer, atr_buffer, length);
/* Store T0 and TS */
More information about the Pcsclite-cvs-commit
mailing list