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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 4281 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 26 15:00:42 2009 UTC (3 years, 10 months ago) by rousseau
File length: 11500 byte(s)
Diff to previous 4195 , to selected 892
ccid_open_hack_pre(): do not call InterruptRead() with a KOBIL_TRIBANK
The call do not timeout and blocs until a card is inserted (on Mac OS X)

Revision 4195 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 10 16:15:39 2009 UTC (4 years ago) by rousseau
File length: 11338 byte(s)
Diff to previous 3424 , to selected 892
ccid_open_hack_pre(): call InterruptRead() for all CCID device
Makes the Broadcom 5880 work a bit better (but the reader is still
bogus)
---This line, and those below, will be ignored--

M    src/ccid.c

Revision 3424 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 10 07:43:30 2009 UTC (4 years, 1 month ago) by rousseau
File length: 11340 byte(s)
Diff to previous 3404 , to selected 892
ccid_open_hack_pre(): empty the interrupt end point (card movements)
before trying to talk to the device for the GemProx DU/SU

Revision 3404 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 30 09:04:52 2009 UTC (4 years, 1 month ago) by rousseau
File length: 11296 byte(s)
Diff to previous 3403 , to selected 892
move hack code for GemPC Key, GemPC Twin, GemPC pinpad, GemProx DU
GemProx SU and SCM contactless readers from ccid_open_hack_pre() to
ccid_open_hack_post()

We first need to get a correct communication (sync USB togggle bit)
before sending the control commands

Revision 3403 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 30 08:55:59 2009 UTC (4 years, 1 month ago) by rousseau
File length: 11297 byte(s)
Diff to previous 3378 , to selected 892
split ccid_open_hack() in ccid_open_hack_pre() and ccid_open_hack_post()
before and after the empirical "warm up" sequence

The problem is the USB toggle bit. I could not find a simple way to
reset it. So when the driver is started again the reader and the host
may not be in sync. The few first CCID commands may fail.

Revision 3378 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 26 14:34:35 2009 UTC (4 years, 1 month ago) by rousseau
File length: 10885 byte(s)
Diff to previous 3280 , to selected 892
add support of a composite device as multi-slots device

Revision 3280 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 13 19:30:21 2009 UTC (4 years, 4 months ago) by rousseau
File length: 10310 byte(s)
Diff to previous 3269 , to selected 892
disable support of the contcatless part of SDI010 and SCR331DI

Revision 3269 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 5 14:35:25 2009 UTC (4 years, 4 months ago) by rousseau
File length: 10297 byte(s)
Diff to previous 3268 , to selected 892
use snprintf() instead of sprintf() to avoid potential buffer overflow

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

Revision 3105 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 1 08:20:04 2008 UTC (4 years, 8 months ago) by rousseau
File length: 10183 byte(s)
Diff to previous 2974 , to selected 892
ccid_open_hack(): GEMPCPINPAD: add a sleep(1) before sending the load
strings command to let the reader initialise itself

Revision 2974 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 28 18:32:52 2008 UTC (4 years, 11 months ago) by rousseau
File length: 10169 byte(s)
Diff to previous 2808 , to selected 892
update Free Software Foundation mail address

Revision 2808 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 8 14:38:46 2008 UTC (5 years, 3 months ago) by rousseau
File length: 10173 byte(s)
Diff to previous 2804 , to selected 892
ccid_open_hack(): do not call InterruptRead when compiling the serial driver
since this function is not defined in that case

Revision 2804 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 7 13:50:04 2008 UTC (5 years, 3 months ago) by rousseau
File length: 10146 byte(s)
Diff to previous 2782 , to selected 892
#include "ccid_usb.h" to get the declaration of InterruptRead()

Revision 2782 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 1 10:10:07 2008 UTC (5 years, 3 months ago) by rousseau
File length: 10124 byte(s)
Diff to previous 2596 , to selected 892
add support of Smart Enterprise Guardian

Revision 2596 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 3 16:10:28 2007 UTC (5 years, 10 months ago) by rousseau
File length: 10069 byte(s)
Diff to previous 2489 , to selected 892
ccid_error(): increase the size of var_text[] to avoid a buffer overflow

Thanks to Anders Storsveen for the bug report

Revision 2489 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 21 12:44:38 2007 UTC (6 years, 1 month ago) by rousseau
File length: 10069 byte(s)
Diff to previous 2470 , to selected 892
ccid_open_hack(): add Dutch(nl) and Tukish(tr) messages for the GemPC
pinpad

Revision 2470 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 8 12:44:37 2007 UTC (6 years, 2 months ago) by rousseau
File length: 9488 byte(s)
Diff to previous 2366 , to selected 892
add support of ICCD version A and B

Revision 2366 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 30 15:46:07 2007 UTC (6 years, 3 months ago) by rousseau
File length: 8629 byte(s)
Diff to previous 2365 , to selected 892
ccid_open_hack(): add the l10n of the 10th string "PIN blocked"

Revision 2365 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 30 15:01:50 2007 UTC (6 years, 3 months ago) by rousseau
File length: 8503 byte(s)
Diff to previous 2255 , to selected 892
ccid_open_hack(): add portugese strings for the GemPC Pinpad.

Thanks to Stef Hoeben

Revision 2255 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 2 17:08:01 2006 UTC (6 years, 5 months ago) by rousseau
File length: 8229 byte(s)
Diff to previous 2254 , to selected 892
ccid_error(): "char *file" argument -> "const char *file"

Revision 2254 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 2 17:03:26 2006 UTC (6 years, 5 months ago) by rousseau
File length: 8223 byte(s)
Diff to previous 2152 , to selected 892
warning: assignment discards qualifiers from pointer target type

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

Revision 2085 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 3 12:57:50 2006 UTC (6 years, 10 months ago) by rousseau
File length: 8184 byte(s)
Diff to previous 2082 , to selected 892
ccid_open_hack(): the CL1356D firmware needs some time to initialize.
Wait 1 second here

Revision 2082 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 30 14:04:33 2006 UTC (6 years, 10 months ago) by rousseau
File length: 8037 byte(s)
Diff to previous 2035 , to selected 892
ccid_error(): display the value of the Unknown CCID error code

Revision 2035 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 3 20:48:48 2006 UTC (7 years ago) by rousseau
File length: 7989 byte(s)
Diff to previous 1950 , to selected 892
ccid_open_hack(): add SCM SCR331-DI-NTTCOM in the list of dual slots
contactless readers hack

Revision 1950 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 21 08:48:09 2006 UTC (7 years, 1 month ago) by rousseau
File length: 7925 byte(s)
Diff to previous 1832 , to selected 892
add support for SCM SDI 010 contactless reader

thanks to Oleg Makarenko for the patch

Revision 1832 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 24 16:32:14 2006 UTC (7 years, 3 months ago) by rousseau
File length: 7879 byte(s)
Diff to previous 1805 , to selected 892
add support for the SmartEpad (v 2.0) reader (MYSMARTPAD)

Revision 1805 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 18 07:38:06 2006 UTC (7 years, 4 months ago) by rousseau
File length: 7812 byte(s)
Diff to previous 1799 , to selected 892
ccid_open_hack(): update the spanish PIN Pad string since the number of
remaining tries in always displayed at the first character

Revision 1799 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 12 21:51:25 2006 UTC (7 years, 4 months ago) by rousseau
File length: 7812 byte(s)
Diff to previous 1796 , to selected 892
ccid_open_hack(): use { } around DEBUG_COMM() in an if-else since
DEBUG_COMM() is not a function but an multi-instruction macro

Revision 1796 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 11 14:56:24 2006 UTC (7 years, 4 months ago) by rousseau
File length: 7788 byte(s)
Diff to previous 1795 , to selected 892
ccid_open_hack(): load the localisation strings according to LANG
environment variable. Languages supported: de, en, es, fr, it

Revision 1795 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 11 10:39:54 2006 UTC (7 years, 4 months ago) by rousseau
File length: 5228 byte(s)
Diff to previous 1771 , to selected 892
move the comment about APDU mode from ccid_open_hack() to Info.plist
since it is configured there

Revision 1771 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 29 12:21:00 2005 UTC (7 years, 5 months ago) by rousseau
File length: 5349 byte(s)
Diff to previous 1494 , to selected 892
remove PCSC/ from the pcsc-lite #include header files since the PCSC/
part is already given by `pkg-config --cflags libpcsclite`

Revision 1494 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 2 12:07:13 2005 UTC (8 years ago) by rousseau
File length: 5359 byte(s)
Diff to previous 1411 , to selected 892
ccid_error(): function is (const char *) instead of (char *) to avoid a
"warning: passing arg 4 of `ccid_error' discards qualifiers from pointer
target type" using gcc 3.4

Revision 1411 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 17 10:27:57 2005 UTC (8 years, 2 months ago) by rousseau
File length: 5353 byte(s)
Diff to previous 1399 , to selected 892
ccid_error(): use log_msg() instead of debug_msg()

Revision 1399 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 14 18:56:53 2005 UTC (8 years, 2 months ago) by rousseau
File length: 5334 byte(s)
Diff to previous 1228 , to selected 892
change licence from GNU GPL to GNU LGPL

Revision 1228 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 8 20:48:30 2004 UTC (8 years, 8 months ago) by rousseau
File length: 5312 byte(s)
Diff to previous 1157 , to selected 892
ccid_open_hack(): do not use a null terminated C string for the
TPDU->APDU switch command since the command is NOT a C string

Revision 1157 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 6 11:56:07 2004 UTC (8 years, 9 months ago) by rousseau
File length: 5310 byte(s)
Diff to previous 1106 , to selected 892
ccid_open_hack(): update the hack for the SCR331-DI contactless now we
use multi-slots

Revision 1106 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 28 08:33:18 2004 UTC (8 years, 9 months ago) by rousseau
File length: 5143 byte(s)
Diff to previous 1093 , to selected 892
use reader_index instead of lun as reader identification

Revision 1093 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 21 09:01:11 2004 UTC (8 years, 9 months ago) by rousseau
File length: 5098 byte(s)
Diff to previous 1051 , to selected 892
ccid_open_hack(): detect and activate the contactless interface of the
SCR331-DI

Revision 1051 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 08:45:21 2004 UTC (8 years, 10 months ago) by rousseau
File length: 4262 byte(s)
Diff to previous 1043 , to selected 892
the buffer var_text[] was, in fact, used outside its declaration

Revision 1043 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 07:10:17 2004 UTC (8 years, 10 months ago) by rousseau
File length: 4266 byte(s)
Diff to previous 989 , to selected 892
lun is (unsigned int) instead of (int)

Avoid a warning by splint in #define LunToReaderIndex(Lun) (Lun>>16)
Left operand of >> may be negative (int): lun >> 16

Revision 989 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 30 09:43:45 2004 UTC (8 years, 10 months ago) by rousseau
File length: 4257 byte(s)
Diff to previous 892
ccid_error() now also has a "char *function" argument to log the name of
the function in which the error occured

Revision 892 - (view) (download) (annotate) - [selected]
Modified Mon May 24 12:58:43 2004 UTC (8 years, 11 months ago) by rousseau
File length: 4218 byte(s)
Diff to previous 890
recompile using gcc -pedantic and correct:
- some C++ syntax comments
- many signedness "problems"

Revision 890 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 24 09:58:43 2004 UTC (8 years, 11 months ago) by rousseau
File length: 4209 byte(s)
Diff to previous 879 , to selected 892
- add some missing error codes
- low error values indicate the byte in error in the CCID frame

Revision 879 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 17 14:39:22 2004 UTC (9 years ago) by rousseau
File length: 3783 byte(s)
Diff to previous 611 , to selected 892
redefined CmdEscape() to pass the CCID message instead of just a tag

Revision 611 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 15 13:41:01 2004 UTC (9 years, 4 months ago) by rousseau
File length: 3554 byte(s)
Diff to previous 445 , to selected 892
use an (int *) instead of a PDWORD for rx_length argument

Revision 445 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 16 14:19:11 2003 UTC (9 years, 8 months ago) by rousseau
File length: 3536 byte(s)
Diff to previous 413 , to selected 892
Do not switch to APDU mode since it also swicth in EMV mode and may not
work with non EMV cards

Revision 413 - (view) (download) (annotate) - [select for diffs]
Added Wed Sep 10 09:15:51 2003 UTC (9 years, 8 months ago) by rousseau
File length: 3402 byte(s)
Diff to selected 892
contains common CCID feature for USB and serial (was in ccid_usb before)

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