[Pcsclite-cvs-commit] Drivers/ccid/examples scardcontrol.c,1.3,1.4
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/Drivers/ccid/examples
In directory haydn:/tmp/cvs-serv2925/examples
Modified Files:
scardcontrol.c
Log Message:
remove useless bPINOperation
Index: scardcontrol.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/examples/scardcontrol.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- scardcontrol.c 25 May 2004 14:46:02 -0000 1.3
+++ scardcontrol.c 26 May 2004 07:48:03 -0000 1.4
@@ -75,7 +75,7 @@
unsigned char bRecvBuffer[MAX_BUFFER_SIZE];
DWORD length;
char attribute[1];
- int attribute_length;
+ DWORD attribute_length;
printf("SCardControl sample code\n");
printf("V 1.0 2004, Ludovic Rousseau <ludovic.rousseau@free.fr>\n");
@@ -222,7 +222,6 @@
bSendBuffer[offset++] = 0x00; /* '\0' */
/* CCID PIN verification data structure */
- bSendBuffer[offset++] = 0x00; /* bPINOperation */
bSendBuffer[offset++] = 0x00; /* bTimeOut */
bSendBuffer[offset++] = 0x82; /* bmFormatString */
bSendBuffer[offset++] = 0x04; /* bmPINBlockString (PIN length) */
@@ -232,11 +231,11 @@
bSendBuffer[offset++] = 0x02; /* bEntryValidationCondition */
bSendBuffer[offset++] = 0x00; /* bNumberMessage */
bSendBuffer[offset++] = 0x04; /* wLangId: english */
- bSendBuffer[offset++] = 0x09; /* */
+ bSendBuffer[offset++] = 0x09; /* " */
bSendBuffer[offset++] = 0x00; /* bMsgIndex */
bSendBuffer[offset++] = 0x00; /* bTeoPrologue */
- bSendBuffer[offset++] = 0x00;
- bSendBuffer[offset++] = 0x00;
+ bSendBuffer[offset++] = 0x00; /* " */
+ bSendBuffer[offset++] = 0x00; /* " */
printf(" command:");
for (i=0; i<offset; i++)