/[pcsclite]/trunk/Drivers/ccid/README
ViewVC logotype

Contents of /trunk/Drivers/ccid/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 584 - (hide annotations) (download)
Thu Jan 8 15:26:17 2004 UTC (9 years, 4 months ago) by rousseau
File size: 6699 byte(s)
The crashes under MacOS X were not because of a bug in libusb but because of
a bug in pcscd MacOS X hotplug.
1 rousseau 269 USB CCID IFD Handler
2     ====================
3    
4     This package provides the source code for a generic USB CCID
5     (Chip/Smart Card Interface Devices) driver. See [1] for the USB CCID
6 rousseau 273 specifications from the USB working group.
7 rousseau 269
8    
9     Author:
10     =======
11    
12     - Ludovic Rousseau <ludovic.rousseau@free.fr>
13    
14    
15     Supported CCID readers:
16     =======================
17    
18 rousseau 273 (in alphabetical order)
19     - Gemplus GemPC 433 SL [2]
20     - Gemplus GemPC Key [3]
21     - Gemplus GemPC Twin [4]
22 rousseau 523 - LTC31 from C3PO [8]
23 rousseau 273 - OmniKey CardMan 3121 [5]
24     - SCM Micro SCR 331 [6]
25     - SCM Micro SCR 335 [7]
26 rousseau 553 - SCM Micro SPR 532 [9]
27 rousseau 269
28    
29     Unsupported CCID readers:
30     =========================
31    
32 rousseau 523 None known.
33 rousseau 269
34    
35 rousseau 321 Supported operating systems:
36     ============================
37    
38     - GNU/Linux (libusb 0.1.7)
39     - MacOS X/Darwin (libusb 0.1.8beta, CVS snapshot. See "Known problems")
40     to libusb)
41    
42    
43     Known problems:
44     ===============
45    
46 rousseau 326 All platforms
47 rousseau 465 T=1 and TPDU
48     """"""""""""
49     I do not yet included support of T=1 cards when the reader is in
50     TPDU mode.
51     If you have a T=1 card I recommand you to use a reader working in
52     APDU mode. T=1 and TPDU will be supported in a future version of
53     the driver.
54    
55 rousseau 321 readers enumeration
56 rousseau 326 """""""""""""""""""
57     You may have wrong reader identification if you connect two or
58     more reader at the exact same time.
59 rousseau 321
60 rousseau 326 The daemon pcscd and the CCID driver do not list connected readers
61     in the same order. The driver has no way to know which reader has
62     been detected as a new reader by pcscd.
63    
64     So if you plug two readers at the same time (for example if you
65     start pcscd with two readers connected or if you plug a USB hub
66     with two readers on the hub) you may have this (with two readers
67     foo and bar):
68     - pcscd scans the USB bus and finds a new CCID reader foo and
69     calls the driver
70     - the CCID driver scan the USB bus and finds a new different
71     reader bar
72 rousseau 321 - pcscd continues scanning the USB bus and finds the second reader
73     bar and calls the driver
74     - the CCID driver scan the USB bus and finds an unused reader foo.
75    
76 rousseau 326 Now the reader foo will be called bar by pcscd and bar will be
77     called foo. This may not be a problem if the two readers have
78     the same name. But it is strange to insert a card in the
79     physical reader foo and see pcscd detect the card insertion in
80     the reader he calls bar.
81    
82     The solution is to use IFDHCreateChannelByName() instead of
83     IFDHCreateChannel() and specify the USB device to use. But pcscd
84     does not implement IFDHCreateChannelByName() yet. Maybe in the
85     future.
86    
87     Another solution is to plug readers one after the other and not
88     at the same time.
89    
90 rousseau 340 *BSD
91     libusb
92     """"""
93     The libusb does not yet support USB interrupt endpoints. You will
94     notice that the driver will stop working as soon as you insert a
95     card in the reader.
96     A new version of libusb should fix this bug.
97 rousseau 321
98 rousseau 340
99 rousseau 273 Licence:
100     ========
101    
102 rousseau 269 This program is free software; you can redistribute it and/or modify
103     it under the terms of the GNU General Public License as published by the
104     Free Software Foundation; either version 2 of the License, or (at your
105     option) any later version.
106    
107     This program is distributed in the hope that it will be useful, but
108     WITHOUT ANY WARRANTY; without even the implied warranty of
109     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
110     General Public License for more details.
111    
112     You should have received a copy of the GNU General Public License
113     along with this program; if not, write to the Free Software Foundation,
114     Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
115    
116    
117     History:
118     ========
119    
120 rousseau 552 0.3.2 - 4 November 2003, Ludovic Rousseau
121     - src/commands.c: correct a stupid bug that occurs with an APDU with
122     2 bytes response.
123     - Info.plist: add SPR 532 in list of supported readers
124     - parse.c: do not exit if the InterfaceClass is 0xFF (proprietary).
125     It is the case with old readers manufactured before the final
126     release of the CCID specs.
127     - move LTC31 reader from unsupported to supported reader list. It
128     was my f ault since in used odd INS byte in my test applet and odd
129     INS bytes are forbidden by ISO 7816-4 ch. 5.4.2 Instruction byte.
130     Thanks to Josep Moné s Teixidor for pointing the problem.
131     - src/commands.c: comment out the automatic GET RESPONSE part. I
132     don't think it should be in the driver. Maybe in pcscd instead?
133    
134 rousseau 467 0.3.1 - 23 September 2003, Ludovic Rouseau
135     - add --enable-multi-thread (enabled by default) for thread safe
136     support an APDU multiplexing. You will need pcsc-lite-1.2.0-rc3 or
137     above to use this feature.
138     - add --enable-libusb=PATH option is your libusb is not installed in
139     /usr or /usr/local
140     - honor DESTDIR in install rules (closes [ #300110 ]). Thanks to
141     Ville Skyttä for the patch.
142     - src/ccid.c: do not switch the GemPC Key and GemPC Twin in APDU
143     mode since it also swicth in EMV mode and may not work with non
144     EMV cards
145     - src/ccid_serial.c: complete reimplementation of the Twin serial
146     protocol using a finite state automata (code much simpler)
147    
148 rousseau 423 0.3.0 - 10 September 2003, Ludovic Rousseau
149     - support of GemPC Twin connected to a serial port. Thanks to Niki
150     W. Waibel for a working prototype.
151     - support of auto voltage at power up if the reader support it
152     instead of forcing a 5V in all cases.
153     - support of APDU mode instead of just TPDU if the reader support
154     it. Thanks to Jean-Luc Giraud for the idea and inspiration I got
155     from his "concurrent" driver.
156 rousseau 425 - support of "time request" from the card.
157 rousseau 423 - parse: new indentation for more readability of supported features.
158     - switch the GemPC Key and GemPC Twin in APDU mode since they
159     support it but do not announce it in the dwFeatures.
160     - new build process using autoconf/automake.
161    
162 rousseau 342 0.2.0 - 26 August 2003, Ludovic Rousseau
163     - Works under MacOS X
164     - Info.plist: use an <array></array> for the alias enumeration
165     - Makefile rework for *BSD and MacOS X
166    
167 rousseau 273 0.1.0 - 13 August 2003, Ludovic Rousseau
168     - First public release
169 rousseau 269
170    
171 rousseau 425 Bibliography:
172     =============
173 rousseau 269
174     [1] http://www.usb.org/developers/devclass_docs/ccid_classspec_1_00a.pdf
175 rousseau 273 [2] http://www.gemplus.com/products/gempc433/
176     [3] http://www.gemplus.com/products/gempckey/
177 rousseau 269 [4] http://www.gemplus.com/products/gempctwin/
178 rousseau 273 [5] http://www.omnikey.com/en/produkt_details.php3?produkt=1&variante=47
179     [6] http://www.scmmicro.com/security/SCR331.html
180     [7] http://www.scmmicro.com/security/SCR335.html
181 rousseau 423 [8] http://www.c3po.es/pcsc.htm
182 rousseau 553 [9] http://www.scmmicro.com/security/SPR532.html
183 rousseau 269
184     $Id$
185    
186     vim:ts=20

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5