[Pcsclite-cvs-commit] Drivers/ccid/src parse.c,1.4,1.5

rousseau@quantz.debian.org rousseau@quantz.debian.org
Wed, 29 Oct 2003 19:01:25 +0100


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory quantz:/tmp/cvs-serv21305

Modified Files:
	parse.c 
Log Message:
continue parsing even if bInterfaceSubClass and bInterfaceProtocol are
unsupported. This may be the case with non "real" CCID readers.


Index: parse.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/parse.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- parse.c	29 Oct 2003 17:54:04 -0000	1.4
+++ parse.c	29 Oct 2003 18:01:23 -0000	1.5
@@ -126,26 +126,20 @@
 		printf(" [Chip Card Interface Device Class (CCID)]\n");
 	else
 	{
-		printf(" NOT A CCID DEVICE\n");
+		printf("\n  NOT A CCID DEVICE\n");
 		if (usb_interface->bInterfaceClass != 0xFF)
 			return TRUE;
 		else
-			printf(" Class is 0xFF (proprietary)\n");
+			printf("  Class is 0xFF (proprietary)\n");
 	}
 	
 	printf(" bInterfaceSubClass: %d\n", usb_interface->bInterfaceSubClass);
 	if (usb_interface->bInterfaceSubClass)
-	{
 		printf("  UNSUPPORTED SubClass\n");
-		return TRUE;
-	}
 
 	printf(" bInterfaceProtocol: %d\n", usb_interface->bInterfaceProtocol);
 	if (usb_interface->bInterfaceProtocol)
-	{
 		printf("  UNSUPPORTED InterfaceProtocol\n");
-		return TRUE;
-	}
 
 	printf(" iInterface: %d\n", usb_interface->iInterface);