[Pcsclite-cvs-commit] Drivers/ccid/src/protocol_t1 pps.c,1.2,1.3 pps.h,1.1,1.2
rousseau@quantz.debian.org
rousseau@quantz.debian.org
Wed, 11 Feb 2004 15:33:06 +0100
Update of /cvsroot/pcsclite/Drivers/ccid/src/protocol_t1
In directory quantz:/tmp/cvs-serv10633/protocol_t1
Modified Files:
pps.c pps.h
Log Message:
PPS_Exchange() now uses 'int lun' instead of 'Protocol_T1 * t1'
Index: pps.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/protocol_t1/pps.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pps.c 3 Feb 2004 15:42:24 -0000 1.2
+++ pps.c 11 Feb 2004 14:33:04 -0000 1.3
@@ -57,7 +57,7 @@
static BYTE PPS_GetPCK (BYTE * block, unsigned length);
int
-PPS_Exchange (Protocol_T1 * t1, BYTE * params, unsigned *length)
+PPS_Exchange (int lun, BYTE * params, unsigned *length)
{
BYTE confirm[PPS_MAX_LENGTH];
unsigned len_request, len_confirm;
@@ -69,12 +69,12 @@
DEBUG_XXD ("PPS: Sending request: ", params, len_request);
/* Send PPS request */
- if (CCID_Transmit (t1->lun, len_request, params) != IFD_SUCCESS)
+ if (CCID_Transmit (lun, len_request, params) != IFD_SUCCESS)
return PPS_ICC_ERROR;
/* Get PPS confirm */
len_confirm = sizeof(confirm);
- if (CCID_Receive (t1->lun, &len_confirm, confirm) != IFD_SUCCESS)
+ if (CCID_Receive (lun, &len_confirm, confirm) != IFD_SUCCESS)
return PPS_ICC_ERROR;
len_confirm = PPS_GetLength (confirm);
Index: pps.h
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/protocol_t1/pps.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- pps.h 15 Jan 2004 14:34:21 -0000 1.1
+++ pps.h 11 Feb 2004 14:33:04 -0000 1.2
@@ -59,6 +59,6 @@
* Exported functions declaration
*/
-int PPS_Exchange (Protocol_T1 * t1, BYTE * params, unsigned *length);
+int PPS_Exchange (int lun, BYTE * params, unsigned *length);
#endif /* _PPS_ */