[SmartcardServices-Changes] [20] trunk/SmartCardServices/src/PCSC/atrhandler.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 2 01:06:56 PDT 2009
Revision: 20
http://trac.macosforge.org/projects/smartcardservices/changeset/20
Author: ludovic.rousseau at gmail.com
Date: 2009-07-02 01:06:55 -0700 (Thu, 02 Jul 2009)
Log Message:
-----------
remove extra spaces at end of line
Modified Paths:
--------------
trunk/SmartCardServices/src/PCSC/atrhandler.c
Modified: trunk/SmartCardServices/src/PCSC/atrhandler.c
===================================================================
--- trunk/SmartCardServices/src/PCSC/atrhandler.c 2009-02-11 22:35:32 UTC (rev 19)
+++ trunk/SmartCardServices/src/PCSC/atrhandler.c 2009-07-02 08:06:55 UTC (rev 20)
@@ -16,16 +16,16 @@
*/
/******************************************************************
-
+
MUSCLE SmartCard Development ( http://www.linuxnet.com )
Title : atrhandler.c
Author : David Corcoran
Date : 7/27/99
License: Copyright (C) 1999 David Corcoran
- <corcoran at linuxnet.com>
+ <corcoran at linuxnet.com>
Purpose: This keeps track of smartcard protocols,
timing issues, and atr handling.
-
+
********************************************************************/
#include <syslog.h>
@@ -37,10 +37,10 @@
#include "atrhandler.h"
/*
- * Uncomment the following for ATR debugging
+ * Uncomment the following for ATR debugging
*/
/*
- * #define ATR_DEBUG 1
+ * #define ATR_DEBUG 1
*/
short ATRDecodeAtr(PSMARTCARD_EXTENSION psExtension,
@@ -53,7 +53,7 @@
short TAi, TBi, TCi, TDi; /* Interface characters */
/*
- * Zero out everything
+ * Zero out everything
*/
p = K = TCK = Y1i = T = TAi = TBi = TCi = TDi = 0;
@@ -63,14 +63,14 @@
}
/*
- * Zero out the bitmasks
+ * Zero out the bitmasks
*/
psExtension->CardCapabilities.AvailableProtocols = 0x00;
psExtension->CardCapabilities.CurrentProtocol = 0x00;
/*
- * Decode the TS byte
+ * Decode the TS byte
*/
if (pucAtr[0] == 0x3F)
@@ -87,11 +87,11 @@
}
/*
- * Here comes the platform dependant stuff
+ * Here comes the platform dependant stuff
*/
/*
- * Decode the T0 byte
+ * Decode the T0 byte
*/
Y1i = pucAtr[1] >> 4; /* Get the MSN in Y1 */
K = pucAtr[1] & 0x0F; /* Get the LSN in K */
@@ -104,7 +104,7 @@
#endif
/*
- * Examine Y1
+ * Examine Y1
*/
do
@@ -121,7 +121,7 @@
#endif
/*
- * Examine TDi to determine protocol and more
+ * Examine TDi to determine protocol and more
*/
if (TDi >= 0)
{
@@ -129,7 +129,7 @@
T = TDi & 0x0F; /* Get the LSN in K */
/*
- * Set the current protocol TD1
+ * Set the current protocol TD1
*/
if (psExtension->CardCapabilities.CurrentProtocol == 0x00)
{
@@ -177,7 +177,7 @@
psExtension->CardCapabilities.AvailableProtocols |= T;
/*
* Do nothing for now since other protocols are not
- * supported at this time
+ * supported at this time
*/
}
@@ -196,7 +196,7 @@
while (Y1i != 0);
/*
- * If TDx is not set then the current must be T0
+ * If TDx is not set then the current must be T0
*/
if (psExtension->CardCapabilities.CurrentProtocol == 0x00)
{
@@ -206,7 +206,7 @@
}
/*
- * Take care of the historical characters
+ * Take care of the historical characters
*/
psExtension->ATR.HistoryLength = K;
@@ -216,7 +216,7 @@
/*
* Check to see if TCK character is included It will be included if
- * more than T=0 is supported
+ * more than T=0 is supported
*/
if (psExtension->CardCapabilities.AvailableProtocols &
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/smartcardservices-changes/attachments/20090702/981061da/attachment.html>
More information about the SmartcardServices-Changes
mailing list