/[pcsclite]/trunk/Drivers/ccid/src/parse.c
ViewVC logotype

Log of /trunk/Drivers/ccid/src/parse.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 3408 - (view) (download) (annotate) - [select for diffs]
Modified Thu Apr 2 07:27:13 2009 UTC (4 years, 2 months ago) by rousseau
File length: 15313 byte(s)
Diff to previous 3348
get the iInterface string instead of just printing the string number

Revision 3348 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 17 09:42:40 2009 UTC (4 years, 3 months ago) by rousseau
File length: 15182 byte(s)
Diff to previous 3268
allow to list more than one CCID interface per USB device

Revision 3268 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 5 14:28:26 2009 UTC (4 years, 5 months ago) by rousseau
File length: 14952 byte(s)
Diff to previous 3188
explicitly cast result in void when not used (reported by the splint tool)

Revision 3188 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 31 12:37:42 2008 UTC (4 years, 7 months ago) by rousseau
File length: 14178 byte(s)
Diff to previous 2974
small code reformat

Revision 2974 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 28 18:32:52 2008 UTC (5 years ago) by rousseau
File length: 14177 byte(s)
Diff to previous 2966
update Free Software Foundation mail address

Revision 2966 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 22 12:06:09 2008 UTC (5 years ago) by rousseau
File length: 14182 byte(s)
Diff to previous 2936
libusb-compat returns a permission denied error on usb_open() when not
run as root

Revision 2936 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 9 14:24:58 2008 UTC (5 years, 1 month ago) by rousseau
File length: 14056 byte(s)
Diff to previous 2935
do not try to parse devices with bInterfaceClass=0xFF by default (use
command line argument -p for proprietary class)

Revision 2935 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 9 14:14:00 2008 UTC (5 years, 1 month ago) by rousseau
File length: 13711 byte(s)
Diff to previous 2872
remove duplicated code

Revision 2872 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 8 14:02:34 2008 UTC (5 years, 2 months ago) by rousseau
File length: 13938 byte(s)
Diff to previous 2862
display the enumerated USB devices and if they are or not a CCID/ICCD
device
also add some colors

Revision 2862 - (view) (download) (annotate) - [select for diffs]
Modified Sat Mar 29 15:35:05 2008 UTC (5 years, 2 months ago) by rousseau
File length: 12876 byte(s)
Diff to previous 2861
log error messages on stderr instead of stdout

Revision 2861 - (view) (download) (annotate) - [select for diffs]
Modified Sat Mar 29 15:31:58 2008 UTC (5 years, 2 months ago) by rousseau
File length: 12847 byte(s)
Diff to previous 2791
use an unsigned char [] buffer only for multi-bytes conversions.
usb_* functions want a char [] buffer.

Revision 2791 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 6 08:26:29 2008 UTC (5 years, 4 months ago) by rousseau
File length: 12734 byte(s)
Diff to previous 2679
bInterfaceProtocol set to 0 is CCID

Revision 2679 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 1 17:16:43 2007 UTC (5 years, 7 months ago) by rousseau
File length: 12727 byte(s)
Diff to previous 2677
do not claim/release the device on Mac OS X

Revision 2677 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 1 15:13:46 2007 UTC (5 years, 7 months ago) by rousseau
File length: 12677 byte(s)
Diff to previous 2675
if usb_claim_interface() fails we ask the user to stop pcscd and retry

Revision 2675 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 1 14:35:29 2007 UTC (5 years, 7 months ago) by rousseau
File length: 12557 byte(s)
Diff to previous 2650
claim and release the interface

Revision 2650 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 13 19:43:52 2007 UTC (5 years, 8 months ago) by rousseau
File length: 12212 byte(s)
Diff to previous 2485
display "Can't find any CCID device. Maybe you must run parse as root?"
if appropriate

Revision 2485 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 15 21:39:46 2007 UTC (6 years, 3 months ago) by rousseau
File length: 12067 byte(s)
Diff to previous 2480
if usb_control_msg() fails because the device is busy this is because
pcscd has claimed the device already

Revision 2480 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 13 20:49:42 2007 UTC (6 years, 3 months ago) by rousseau
File length: 11942 byte(s)
Diff to previous 2468
use an unsigned char buffer[] to have unsigned multi-bytes convertions

Revision 2468 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 8 10:19:43 2007 UTC (6 years, 3 months ago) by rousseau
File length: 11933 byte(s)
Diff to previous 2429
bit 0x000800 of dwFeatures is undocumented but used by ICCD?

Revision 2429 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 23 17:02:43 2007 UTC (6 years, 3 months ago) by rousseau
File length: 11869 byte(s)
Diff to previous 2428
display the error message if usb_control_msg() fails

Revision 2428 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 23 17:01:25 2007 UTC (6 years, 3 months ago) by rousseau
File length: 11823 byte(s)
Diff to previous 2390
do not declare another buffer variable to avoid: declaration of ‘buffer’
shadows a previous local

Revision 2390 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 8 14:18:56 2007 UTC (6 years, 4 months ago) by rousseau
File length: 11939 byte(s)
Diff to previous 2389
parse bInterfaceProtocol field

Revision 2389 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 8 14:13:47 2007 UTC (6 years, 4 months ago) by rousseau
File length: 11654 byte(s)
Diff to previous 2328
parse bNumEndpoints field

Revision 2328 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 10 20:53:44 2007 UTC (6 years, 5 months ago) by rousseau
File length: 11332 byte(s)
Diff to previous 2326
typo: "busses" -> "buses"

Thanks to Martin Paljak for the patch

Revision 2326 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 10 15:50:51 2007 UTC (6 years, 5 months ago) by rousseau
File length: 11333 byte(s)
Diff to previous 2256
add a missing \n in printf

Revision 2256 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 2 17:09:03 2006 UTC (6 years, 6 months ago) by rousseau
File length: 11331 byte(s)
Diff to previous 2234
remove unused argc and argv arguments

Revision 2234 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 22 19:40:15 2006 UTC (6 years, 6 months ago) by rousseau
File length: 11375 byte(s)
Diff to previous 2152
exit if the command is not run as root and getting iManufacturer fails

Revision 2152 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 6 20:06:58 2006 UTC (6 years, 9 months ago) by rousseau
File length: 11259 byte(s)
Diff to previous 2032
remove trailing spaces at end of lines

Revision 2032 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 3 15:47:53 2006 UTC (7 years, 1 month ago) by rousseau
File length: 11269 byte(s)
Diff to previous 1819
I used the MSB instead of LSB in parsing dwSynchProtocols

Revision 1819 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 20 13:27:21 2006 UTC (7 years, 4 months ago) by rousseau
File length: 11269 byte(s)
Diff to previous 1640
rewrite to scan the devices ourself instead of calling
IFDHCreateChannel(). No need to have an updated Info.plist anymore.

Revision 1640 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 5 14:40:13 2005 UTC (7 years, 9 months ago) by rousseau
File length: 10605 byte(s)
Diff to previous 1639
if bNumDataRatesSupported is 0 we get the list size from what
GET DATA RATES command returns

idem for bNumClockSupported

Revision 1639 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 5 13:17:09 2005 UTC (7 years, 9 months ago) by rousseau
File length: 10493 byte(s)
Diff to previous 1638
do not request data rates if the reader reports it support a 0 length
list. Idem for clocks.

Revision 1638 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 5 13:15:14 2005 UTC (7 years, 9 months ago) by rousseau
File length: 10461 byte(s)
Diff to previous 1609
print bNumClockSupported: as %d and not 0x%02X

Revision 1609 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 11 13:50:34 2005 UTC (7 years, 10 months ago) by rousseau
File length: 10465 byte(s)
Diff to previous 1563
check that we do not receive more data rates anc clock frequencies than the
reader supports

Revision 1563 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 16 14:12:11 2005 UTC (8 years ago) by rousseau
File length: 9916 byte(s)
Diff to previous 1562
parse wLcdLayout

Revision 1562 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 16 14:08:07 2005 UTC (8 years ago) by rousseau
File length: 9794 byte(s)
Diff to previous 1561
parse bClassEnveloppe

Revision 1561 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 16 14:06:16 2005 UTC (8 years ago) by rousseau
File length: 9726 byte(s)
Diff to previous 1560
pares bClassGetResponse

Revision 1560 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 16 13:52:17 2005 UTC (8 years ago) by rousseau
File length: 9658 byte(s)
Diff to previous 1489
parse dwSynchProtocols

Revision 1489 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 2 09:55:31 2005 UTC (8 years, 1 month ago) by rousseau
File length: 9487 byte(s)
Diff to previous 1488
display the clock frequencies supported by the reader

Revision 1488 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 2 09:53:24 2005 UTC (8 years, 1 month ago) by rousseau
File length: 8819 byte(s)
Diff to previous 1482
move the display of supported data rates after printing
bNumDataRatesSupported info

Revision 1482 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 2 08:24:57 2005 UTC (8 years, 1 month ago) by rousseau
File length: 8820 byte(s)
Diff to previous 1481
display the bit value of dwFeatures in the text message

Revision 1481 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 2 08:21:47 2005 UTC (8 years, 1 month ago) by rousseau
File length: 8726 byte(s)
Diff to previous 1480
test all the 4 bytes of dwFeatures against 0 and not just the first one

Revision 1480 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 2 08:20:10 2005 UTC (8 years, 1 month ago) by rousseau
File length: 8720 byte(s)
Diff to previous 1468
do not display the list returned by GET DATA RATES if the list size is
not a multiple of 4 (n % 4 != 0)

Revision 1468 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 27 13:21:32 2005 UTC (8 years, 1 month ago) by rousseau
File length: 8609 byte(s)
Diff to previous 1355
display the supported data rates using the CCID command GET DATA RATES

Revision 1355 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 25 17:26:57 2005 UTC (8 years, 3 months ago) by rousseau
File length: 8073 byte(s)
Diff to previous 1280
typo: used "ICC" instead of "CCID"

Revision 1280 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 7 20:27:16 2004 UTC (8 years, 8 months ago) by rousseau
File length: 8071 byte(s)
Diff to previous 1277
use lun instead of channel as first argument to get_desc() and use the
returned value to detect an error

Revision 1277 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 6 12:01:29 2004 UTC (8 years, 8 months ago) by rousseau
File length: 7999 byte(s)
Diff to previous 1276
display idVendor and idProduct

Revision 1276 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 6 11:52:45 2004 UTC (8 years, 8 months ago) by rousseau
File length: 7877 byte(s)
Diff to previous 1275
display USB bcdDevice field. Is it the device firmware release?

Revision 1275 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 6 11:42:41 2004 UTC (8 years, 8 months ago) by rousseau
File length: 7754 byte(s)
Diff to previous 1160
add support of "Character level exchange"

Revision 1160 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 6 13:29:00 2004 UTC (8 years, 10 months ago) by rousseau
File length: 7648 byte(s)
Diff to previous 1144
try to IFDHCloseChannel() only if we opened at least one reader

Revision 1144 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 4 19:53:34 2004 UTC (8 years, 10 months ago) by rousseau
File length: 7636 byte(s)
Diff to previous 1077
do not use OpenUSB/CloseUSB but IFDHCreateChannel/IFDHCloseChannel to
use the ReaderIndex[] mechanism

Revision 1077 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 16 06:53:25 2004 UTC (8 years, 11 months ago) by rousseau
File length: 7613 byte(s)
Diff to previous 1059
rename PCSCLITE_MAX_READERS in CCID_DRIVER_MAX_READERS

This value is not defined by pcsc-lite but is internal to the CCID
driver. By default pcsc-lite supports the same number of readers (16).

Revision 1059 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 14:08:28 2004 UTC (8 years, 11 months ago) by rousseau
File length: 7610 byte(s)
Diff to previous 1057
explicitely cast the returned value as (void) if we don't use it

Revision 1057 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 13:29:02 2004 UTC (8 years, 11 months ago) by rousseau
File length: 7604 byte(s)
Diff to previous 1056
ccid_parse_interface_descriptor() is now static

Revision 1056 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 13:27:56 2004 UTC (8 years, 11 months ago) by rousseau
File length: 7590 byte(s)
Diff to previous 1055
make channel variable (unsigned int) instead of (int)

Revision 1055 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 13:25:04 2004 UTC (8 years, 11 months ago) by rousseau
File length: 7581 byte(s)
Diff to previous 1053
include <sys/types.h> so splint can parse the file

Revision 1053 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 13:21:44 2004 UTC (8 years, 11 months ago) by rousseau
File length: 7530 byte(s)
Diff to previous 877
mark unused arguments as /*@unused@*/ for splint

Revision 877 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 17 14:35:51 2004 UTC (9 years, 1 month ago) by rousseau
File length: 7504 byte(s)
Diff to previous 779
reorganize header files

Revision 779 - (view) (download) (annotate) - [select for diffs]
Modified Thu Apr 8 09:46:54 2004 UTC (9 years, 2 months ago) by rousseau
File length: 7482 byte(s)
Diff to previous 737
parse bPINSupport field

Revision 737 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 30 12:45:26 2004 UTC (9 years, 2 months ago) by rousseau
File length: 7346 byte(s)
Diff to previous 661
- use get_ccid_usb_interface() to also manage USB composite devices (keyboards)
- continue parsing even if bDescriptorType == 0xFF (proprietary)

Revision 661 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 29 10:32:20 2004 UTC (9 years, 4 months ago) by rousseau
File length: 7253 byte(s)
Diff to previous 579
remore *device_name[] argument from get_desc()

Revision 579 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 5 20:53:59 2004 UTC (9 years, 5 months ago) by rousseau
File length: 7316 byte(s)
Diff to previous 529
add a test on the USB extra field length to avoid a crash and print an
error message. This occurs when the reader is _not_ CCID and the CCID
driver is used (wrong Info.plist for example).

Revision 529 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 29 18:01:23 2003 UTC (9 years, 7 months ago) by rousseau
File length: 7148 byte(s)
Diff to previous 528
continue parsing even if bInterfaceSubClass and bInterfaceProtocol are
unsupported. This may be the case with non "real" CCID readers.

Revision 528 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 29 17:54:04 2003 UTC (9 years, 7 months ago) by rousseau
File length: 7186 byte(s)
Diff to previous 405
do not exit if the InterfaceClass is 0xFF (proprietary). It is the case
with old readers manufactured before the final release of the CCID specs.

Revision 405 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 10 08:57:29 2003 UTC (9 years, 9 months ago) by rousseau
File length: 7086 byte(s)
Diff to previous 314
indent the output with one feature per line (and not on the same line
separated by ,)

Revision 314 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 21 14:10:33 2003 UTC (9 years, 10 months ago) by rousseau
File length: 6866 byte(s)
Diff to previous 269
do not print garbage if we can't get the iManufacturer or iProduct fields

Revision 269 - (view) (download) (annotate) - [select for diffs]
Added Tue Aug 12 12:40:23 2003 UTC (9 years, 10 months ago) by rousseau
File length: 6747 byte(s)
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.5