[Pcsclite-cvs-commit] Drivers/ccid/src ifdhandler.c,1.51,1.52
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv4955/src
Modified Files:
ifdhandler.c
Log Message:
IFDHSetProtocolParameters(): the bmTCCKST bits shall be _set_ not cleared
Index: ifdhandler.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- ifdhandler.c 24 Aug 2004 07:34:10 -0000 1.51
+++ ifdhandler.c 24 Aug 2004 07:58:01 -0000 1.52
@@ -544,11 +544,11 @@
/* CRC checksum? */
if (2 == t1->rc_bytes)
- param[1] &= 0x01;
+ param[1] |= 0x01;
/* the CCID should ignore this bit */
if (ATR_CONVENTION_INVERSE == convention)
- param[1] &= 0x02;
+ param[1] |= 0x02;
/* get TC1 Extra guard time */
if (atr.ib[0][ATR_INTERFACE_BYTE_TC].present)
@@ -585,7 +585,7 @@
param[0] = pps[2];
if (ATR_CONVENTION_INVERSE == convention)
- param[1] &= 0x02;
+ param[1] |= 0x02;
/* get TC1 Extra guard time */
if (atr.ib[0][ATR_INTERFACE_BYTE_TC].present)