You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1702 lines
71 KiB

  1. pcsc-lite-1.8.13: Ludovic Rousseau
  2. 7 November 2014
  3. - fix a systemd + libudev hotplug bug introduced in version 1.8.12.
  4. The list of readers was not (yet) available just after the start of pcscd
  5. - Make the license more 3-clause BSD like
  6. - fix a rare race condition in the (non default) libusb hotplug
  7. - Some other minor improvements and bug corrections
  8. pcsc-lite-1.8.12: Ludovic Rousseau
  9. 24 September 2014
  10. - make hotplug using libudev (default) more robust
  11. - add ReiserFS file system support (for configuration files)
  12. - add musl libC support (increase the thread stack)
  13. - Some other minor improvements and bug corrections
  14. pcsc-lite-1.8.11: Ludovic Rousseau
  15. 14 February 2014
  16. - Add polkit support. See doc/README.polkit
  17. - /etc/reader.conf: CHANNELID and DEVICENAME are both optional but not
  18. at the same time
  19. - Some other minor improvements and bug corrections
  20. pcsc-lite-1.8.10: Ludovic Rousseau
  21. 19 October 2013
  22. - do not export the internal log_msg symbol from libpcsclite.so.1
  23. pcsc-lite-1.8.9: Ludovic Rousseau
  24. 16 October 2013
  25. - SCardEndTransaction(): Return an error if is called with no
  26. corresponding SCardBeginTransaction()
  27. - SCardGetAttrib(): Add support of SCARD_ATTR_DEVICE_SYSTEM_NAME
  28. - SCardGetAttrib(): Fix bug in SCARD_ATTR_DEVICE_FRIENDLY_NAME
  29. - SCardBeginTransaction() was not correctly releasing a mutex when the
  30. hCard handle was invalidated
  31. The problem was that SCardGetStatusChange() was blocked because
  32. SCardBeginTransaction() had not released the context mutex.
  33. - PCSC/reader.h: Use C99 flexible array member
  34. The structures PIN_MODIFY_STRUCTURE and PIN_VERIFY_STRUCTURE now use a
  35. C99 flexible array member when available for abData field.
  36. uint8_t abData[];
  37. - Add support of --reader-name-no-serial and --reader-name-no-interface
  38. It is now possible to NOT add the USB serial number of the reader
  39. using --reader-name-no-serial
  40. It is now possible to NOT add the CCID interface name of the reader
  41. using --reader-name-no-interface
  42. - Add support of serialconfdir pkg-config variable
  43. It is now possible to use pkg-config to get the directory used by
  44. pcscd to fetch serial drivers configurations.
  45. $ pkg-config libpcsclite --variable=serialconfdir
  46. /etc/reader.conf.d
  47. - pcsc-spy: Try to display the thread in the order they appear in the log
  48. - pcsc-spy: Add SCARD_ATTR_DEVICE_SYSTEM_NAME
  49. - Check the Info.plist file is (a minimum) correct
  50. - Update PROTOCOL_VERSION_MINOR from 2 to 3
  51. We broke the API between version 1.8.3 and 1.8.4 by changing the value
  52. of MAX_READERNAME. This change should have been made before releasing
  53. version 1.8.4 to make mix of versions clearly non working instead of
  54. failing with strange errors.
  55. - hotplug_libudev.c: Fix a memory leak in case of error
  56. - Fix OpenBSD 5.2 compilation regarding dlopen
  57. - correctly manage thread safe multi-slot readers
  58. - Do not use pthread_atfork() any more (fix problem on FreeBSD)
  59. - fix memory leaks.
  60. This was not really a problem unless you embedd pcscd in another
  61. process and do init/deinit pcscd without exiting the process (as maybe
  62. used on Android or iOS).
  63. - pcscd.8 manpage: add documentation for --max-thread,
  64. --max-card-handle-per-thread, --max-card-handle-per-reader,
  65. --force-reader-polling, --error, --critical and --color
  66. - Some other minor improvements and bug corrections
  67. pcsc-lite-1.8.8: Ludovic Rousseau
  68. 16 January 2013
  69. - /etc/reader.conf: handle FRIENDLYNAME with no " delimiters (serial readers)
  70. - Info.plist: Correctly handle reader names containing & (USB readers)
  71. pcsc-lite-1.8.7: Ludovic Rousseau
  72. 28 November 2012
  73. - Fix a problem when a reader is unplugged (and the reader is still in use)
  74. pcsc-lite-1.8.6: Ludovic Rousseau
  75. 30 August 2012
  76. - Fix a problem when only serial drivers are used (no hotplug/USB
  77. driver)
  78. - increase log buffer size from 160 to 2048. Some "long" log lines where
  79. truncated.
  80. - Fix redirection of stdin, stdout and stderr to /dev/null when pcscd is
  81. started as a daemon (default)
  82. - Some other minor improvements and bug corrections
  83. pcsc-lite-1.8.5: Ludovic Rousseau
  84. 4 August 2012
  85. - Fix crash when a reader is unplugged while pcscd is in the middle of a
  86. PC/SC function
  87. - SCardBeginTransaction(): fix a bug introduced in version 1.8.4
  88. related to sharing
  89. - Some other minor improvements and bug corrections
  90. pcsc-lite-1.8.4: Ludovic Rousseau
  91. 26 June 2012
  92. - Add [ and ] in the list of accepted characters for a reader name
  93. - truncates the reader name if it is too long instead of rejecting the
  94. reader
  95. - The restriction to have to call SCardEstablishContext() in each thread
  96. has been removed. Threads could now share a PC/SC context.
  97. - Fix compiler failure for static driver
  98. - Update IFDHandler API Doxygen regarding the "libusb-1.0" naming scheme
  99. - Some other minor improvements and bug corrections
  100. pcsc-lite-1.8.3: Ludovic Rousseau
  101. 30 March 2012
  102. - ignore directories and hidden (.*) files when parsing a configuration
  103. directory (like /etc/reader.conf.d/)
  104. - add Mac OS X for PC/SC spy tool
  105. - fix a bug in PC/SC spy tool when loading of the real library fails
  106. - add PCSCv2_PART10_PROPERTY_dwMaxAPDUDataSize,
  107. PCSCv2_PART10_PROPERTY_wIdVendor and PCSCv2_PART10_PROPERTY_wIdProduct
  108. from PC/SC v2 part 10 release 2.02.09 (not yet published)
  109. - Some other minor improvements and bug corrections
  110. pcsc-lite-1.8.2: Ludovic Rousseau
  111. 18 January 2012
  112. - rename pcsc-spy.py to pcsc-spy and install it as a normal binary (in
  113. /usr/local/bin by default)
  114. - write a pcsc-spy.1 manpage
  115. - fix a bug with a multi-slot reader
  116. - Info.plist parser: avoid a buffer read overflow in & management
  117. - Some Doxygen improvements
  118. pcsc-lite-1.8.1: Ludovic Rousseau
  119. 25 November 2011
  120. - Distribute missing files from src/spy/
  121. pcsc-lite-1.8.0: Ludovic Rousseau
  122. 19 November 2011
  123. - PC/SC spy tool
  124. - Support systemd socket activation (the auto start of pcscd from the
  125. library has been removed. Use systemd instead)
  126. - SCardGetStatusChange(): check all the readers are already known and
  127. return SCARD_E_UNKNOWN_READER if a reader name is not present.
  128. Windows XP has this behavior.
  129. - SCardEstablishContext(): Invalidate all the handles in the son after a
  130. fork
  131. - Add define of FEATURE_EXECUTE_PACE from PCSC v2 Part 10 Amendment 1
  132. 2011-06-03
  133. - Fix some memory leaks reported by Coverity
  134. - Enable silent build by default
  135. - log_line(): correctly calculate delta time when no color is used
  136. The update of last_time was only done in case of colorization
  137. (LogDoColor). So on unsupported consoles the time was wrong.
  138. - log_xxd_always(): Use a variable-length array
  139. The debug message buffer is no more with a fixed size (around 600
  140. bytes of buffer to log) but uses a variable-length array.
  141. It is now possible to log extended APDU of 64kB.
  142. The variable-length array feature is available in GCC in C90 mode and
  143. is mandatory in C99 standard.
  144. - Some other minor improvements and bug corrections
  145. pcsc-lite-1.7.4: Ludovic Rousseau
  146. 23 June 2011
  147. - Fix a stupid bug from the previous version. T=1 cards were not
  148. working.
  149. pcsc-lite-1.7.3: Ludovic Rousseau
  150. 22 June 2011
  151. - COPYING: Add my name as copyright holder
  152. - hotplug libudev: support libudev >= 171
  153. - hotplug libusb: Fix a memory leak
  154. - pcscd: exit immediately in case of SIGTERM
  155. Closes Debian bug #620305 "pcscd slows down shutdown/restart"
  156. - Send logs to stdout instead of stderr
  157. It is now possible to use tee(1) to redirect logs in a file without
  158. first redirecting stderr to stdout
  159. - Add command line option -T, --color: force use of colored logs
  160. The idea is to have colored logs even if they are redirected to a file
  161. or a pipe.
  162. - Define g_rgSCardT?Pci as const structures to be more Windows like
  163. I do not expect a regression or compilation problem in WinSCard API
  164. users but how knows...
  165. - log at level PCSC_LOG_DEBUG instead of PCSC_LOG_ERROR to avoid filling
  166. the system log file
  167. - Remove the deprecated define FEATURE_MCT_READERDIRECT (replaced by
  168. FEATURE_MCT_READER_DIRECT)
  169. - better Hurd support
  170. - some other minor improvements and bug corrections
  171. pcsc-lite-1.7.2: Ludovic Rousseau
  172. 31 March 2011
  173. - fix a crash if a specific driver fails to work and no class driver is
  174. available
  175. pcsc-lite-1.7.1: Ludovic Rousseau
  176. 30 March 2011
  177. - use libudev only on Linux and libusb elsewhere. The configuration now
  178. works by default on GNU/kFreeBSD systems
  179. - Try to use a (CCID) class driver if a specific driver fails to use the
  180. reader.
  181. - fix a potential crash
  182. pcsc-lite-1.7.0: Ludovic Rousseau
  183. 9 March 2011
  184. - use libudev instead of (the deprecated) libhal
  185. pcsc-lite-1.6.7: Ludovic Rousseau
  186. 22 February 2011
  187. - better Mac OS X support
  188. - Fix Alioth bug [#312960] SCardDisconnect when other context has transaction
  189. - add support of multi-interfaces readers with libusb and not just libhal
  190. - add a API tracing feature in the client side (#define DO_TRACE)
  191. - allow the use of tracing and profiling features from different
  192. application threads
  193. - fix a problem with a multi-slots reader
  194. - fix minor problems detected by the clang tool
  195. - some other minor improvements and bug corrections
  196. pcsc-lite-1.6.6: Ludovic Rousseau
  197. 12 December 2010
  198. - SCardGetStatusChange(): fix a bug on 64-bits systems
  199. - Fix another bug because of a regression in internal list manager
  200. pcsc-lite-1.6.5: Ludovic Rousseau
  201. 3 December 2010
  202. - Power on the card _only_ if an application requests a connection.
  203. You can disable the feature using DISABLE_ON_DEMAND_POWER_ON in
  204. src/pcscd.h.in
  205. If DISABLE_AUTO_POWER_ON is defined then do not automatically power on
  206. the card. The card will be powered on on the first SCardConnect()
  207. See http://ludovicrousseau.blogspot.com/2010/10/card-auto-power-on-and-off.html
  208. - SCardReconnect(): return SCARD_E_NO_SMARTCARD when card is removed and
  209. SCARD_W_UNRESPONSIVE_CARD when card is unresponsive instead of
  210. SCARD_E_PROTO_MISMATCH
  211. - Install pcscd as sgid pcscd instead of suid root
  212. See http://ludovicrousseau.blogspot.com/2010/09/pcscd-auto-start.html
  213. - SCardSetTimeout() is no more provided. This function is not provided
  214. by Microsoft and is deprecated since 2004 in pcsc-lite.
  215. - SCardCancelTransaction() is no more provided. This function is not
  216. provided by Microsoft and is deprecated since 2005 in pcsc-lite.
  217. - Parsing the CCID Info.plist (159 readers supported) was, on a i386
  218. machine, done in 264306 µs and is now done 5547 µs => gain x47 or 4600%
  219. See http://ludovicrousseau.blogspot.com/2010/08/ram-and-cpu-improvements-in-pcsc-lite.html
  220. - It is now possible to configure the local socket name to use using the
  221. environment variable PCSCLITE_CSOCK_NAME
  222. See http://ludovicrousseau.blogspot.com/2010/11/pcsc-client-and-server-on-two-different.html
  223. - Wait until all connected readers have a chance to power up a possibly
  224. inserted card before accepting clients.
  225. - restrict pcscd features when not run by root (so using suid): APDU
  226. logging or setting parameters are disabled for example
  227. - fix compilation problem on kfreebsd-* systems
  228. - PCSC/reader.h: HOST_TO_CCID_16() and HOST_TO_CCID_32() are now
  229. identity functions
  230. Since libccid 1.4.1 (revision 5252) the byte order is no more important
  231. - If you want to use IFDHCreateChannel() instead of
  232. IFDHCreateChannelByName() then do not use any DEVICENAME line in the
  233. configuration file. IFDHCreateChannel() will then be called with the
  234. CHANNELID parameter.
  235. - the CHANNELID parameter can also be a decimal number.
  236. - Remove the support of IFDHandler v1 API. I don't know any driver using
  237. this API.
  238. See http://ludovicrousseau.blogspot.com/2010/10/ifdhandler-version-1-support-removed.html
  239. - avoids a buffer overflow with badly formed ATR
  240. - some other minor improvements and bug corrections
  241. pcsc-lite-1.6.4: Ludovic Rousseau
  242. 15 August 2010
  243. - Do not use sysconfdir as configuration directory but
  244. "${sysconfdir}/reader.conf.d" instead.
  245. Use --enable-confdir=DIR if you want to set a specific value without
  246. the "reader.conf.d" appended.
  247. pcsc-lite-1.6.3: Ludovic Rousseau
  248. 15 August 2010
  249. - "/reader.conf.d" is only appended to sysconfdir if no value of
  250. sysconfdir is provided
  251. - Define LPSCARD_READERSTATE since this is used in the MSDN prototype.
  252. Use LPSCARD_READERSTATE in winscard.h instead of (SCARD_READERSTATE *)
  253. to mimic the MSDN API.
  254. - fix a pcscd crash when the application uses a PCSC handle after a
  255. fork. The crash was with openvpn.
  256. - some other minor improvements and bug corrections
  257. pcsc-lite-1.6.2: Ludovic Rousseau
  258. 4 August 2010
  259. - implement a "Forced suicide" mechanism.
  260. After 3 Ctrl-C without much reaction from pcscd (in fact the drivers)
  261. we force the suicide. Sometimes libusb is blocked in a kind of
  262. dead-lock and kill -9 was the only option.
  263. - Add support of TAG_IFD_STOP_POLLING_THREAD to request the stop of the
  264. driver polling function.
  265. - Avoid a division by 0. Closes [#312555] "simclist bug in pcsc-lite"
  266. - if pcscd is stared by libpcsclite then close all file handles except
  267. stdin, stdout and stderr so that pcscd does not confiscate resources
  268. allocated by the application
  269. - in case of auto exit create a new session so that Ctrl-C on the
  270. application will not also quit pcscd
  271. - src/hotplug_libusb.c: port from libusb-0.1 to libusb-1.0
  272. - default configuration is now $sysconfdir/reader.conf.d
  273. - fix crash with empty config dir
  274. - src/PCSC/winscard.h: Remove definitions of SCARD_READERSTATE_A
  275. PSCARD_READERSTATE_A and LPSCARD_READERSTATE_A types
  276. - some other minor improvements and bug corrections
  277. pcsc-lite-1.6.1: Ludovic Rousseau
  278. 4 June 2010
  279. - SCardControl(): do not check for card events since we are talking to
  280. the reader not the card. A smart card removal should not make
  281. SCardControl() fail with SCARD_W_REMOVED_CARD
  282. - pcscd do not timeout any more after 2 minutes of inactivity. If the
  283. other side of the socket dies we will get an error from the kernel.
  284. The problem was that if a client does nothing during
  285. PCSCLITE_READ_TIMEOUT (120 seconds by default) then pcscd considers it
  286. as a dead client and closes the connection. I guess this problem was
  287. present since the first version of pcsc-lite but nobody complained
  288. before.
  289. - pcscd: do not return before most of the initialisation are done
  290. correctly. The idea is that pcscd can return an error code if the
  291. daemon fails to start correctly (hald not started for example).
  292. Before the patch pcscd became a daemon, then returned 0 (success) and
  293. then continued with the initialisation. If the initialisation failed
  294. it was too late to return an error code. The /etc/init.d/pcscd script
  295. was not aware of the failure.
  296. Closes https://bugzilla.redhat.com/show_bug.cgi?id=580321
  297. "/usr/sbin/pcscd exit codes broken"
  298. - src/hotplug_libusb.c: Add a synchronisation so that if pcscd is auto
  299. started the initial reader list is available before the server takes
  300. commands from clients.
  301. Before the change early calls of SCardListReaders() returned an empty
  302. list of readers even if a reader was connected.
  303. Thanks to Patrice Angelini for the bug report
  304. - SCardConnect() & SCardReconnect(): do not reset the cardProtocol in
  305. SCARD_SHARE_DIRECT case since the card have _not_ been reseted. A new
  306. PPS negotiation would fail.
  307. - Do not install files in /etc any more. Serial drivers are rare now.
  308. - Avoids a crash if a client sends a unknown command.
  309. Thanks to Martin Vogt for the bug report
  310. - some other minor improvements and bug corrections
  311. pcsc-lite-1.6.0: Ludovic Rousseau
  312. 5 May 2010
  313. - redesign the client/server communication:
  314. * no more shared memory used (allow pcscd and libpcsclite1.so to be on
  315. different computer and talk over a network)
  316. * no more difference between short and extended APDU
  317. * no more use of a /var/run/pcscd/pcscd.events/ directory. events are
  318. sent through the socket
  319. * simpler command format between client and server
  320. The side effect is that you are not able to mix an old pcscd with a
  321. new libpcsclite1.so or the reverse. SCardEstablishContext() will fail
  322. unless you update both sides of the communication.
  323. - Use lists instead of fixed size arrays to store handles.
  324. It is now possible to have:
  325. - 200 simultaneous PC/SC clients instead of 16
  326. - 200 SCardConnect per client instead of 16
  327. - 200 clients per reader instead of 16
  328. The default value of 200 can be changed by giving an argument to pcscd
  329. --max-thread --max-card-handle-per-thread --max-card-handle-per-reader
  330. Thanks to Jean-Luc Giraud for the big patch
  331. - Make SCardReconnect(), SCardStatus() and SCardTransmit() block instead
  332. of returning SCARD_E_SHARING_VIOLATION immediately. These functions
  333. will then behave like on Windows.
  334. This can happen if these functions are called when the reader is
  335. locked by a PCSC transaction
  336. (SCardBeginTransaction/SCardEndTransaction).
  337. You can define the environment variable PCSCLITE_NO_BLOCKING to use
  338. the old behavior.
  339. Thanks to Jean-Luc Giraud for the patch.
  340. http://archives.neohapsis.com/archives/dev/muscle/2010-q1/0041.html
  341. - SCardEstablishContext(): try to start the pcscd daemon if not already
  342. running.
  343. . pcscd will suicide itself after 60 seconds of inactivity if it is
  344. started using --auto-exit. This is the default behavior when pcscd is
  345. started by libpcsclite
  346. . Set PCSCLITE_PCSCD_ARGS with the argument you want to pass to pcscd in
  347. autostart Only one argument is passed. The space character is not a
  348. separator. example: export PCSCLITE_PCSCD_ARGS=-dfa
  349. - SCardListReaders(): can use SCARD_AUTOALLOCATE
  350. - SCardGetAttrib(): return SCARD_E_INSUFFICIENT_BUFFER if the driver
  351. returns IFD_ERROR_INSUFFICIENT_BUFFER
  352. . add support of SCARD_ATTR_DEVICE_FRIENDLY_NAME as it is better
  353. implemented in pcscd (it knows the friendly name)
  354. - SCardGetStatusChange(): Calling with cReaders == 0 will now just
  355. return SCARD_S_SUCCESS
  356. . Use the special reader name "\\?PnP?\Notification" to wait for a
  357. reader event notification
  358. - SCardTransmit(): do not limit the minimum size of an APDU to 4 bytes.
  359. non ISO 7816-4 compliant cards (like Mifare DESFIRE) may use shorter
  360. commands
  361. - SCardStatus(): returns SCARD_E_SHARING_VIOLATION if the reader is
  362. already used More conform to Windows
  363. - PCSC/reader.h: update struct PIN_PROPERTIES_STRUCTURE to be conform
  364. with Revision 2.02.06, April 2009 of PCSCv2 part 10 Fields
  365. wLcdMaxCharacters and wLcdMaxLines have been removed
  366. . rename FEATURE_MCT_READERDIRECT in FEATURE_MCT_READER_DIRECT to be
  367. conform with ch. 2.3 of PCSC v2 part 10
  368. . add FEATURE_GET_TLV_PROPERTIES and FEATURE_CCID_ESC_COMMAND from
  369. PC/SC part 10 v2.02.07 March 2010
  370. . Add PCSCv2_PART10_PROPERTY_* defines
  371. - SCardControl() return SCARD_E_UNSUPPORTED_FEATURE if the driver
  372. returned IFD_ERROR_NOT_SUPPORTED or IFD_NOT_SUPPORTED This is used to
  373. separate an unsupported value of ControlCode from a general error
  374. - Use the standard --sysconfdir=DIR ($prefix/etc by default) instead of
  375. --enable-confdir=DIR for defining the directory containing reader.conf
  376. - remove SCF support (PC/SC over Smart Card Framework). I never used
  377. this feature and SCF is now dead and replaced by JSR 268
  378. (javax.smartcardio)
  379. - Better handling of PCSCLITE_STATIC_DRIVER as can be used on platforms
  380. using µClinux (without dynamic loader). This is used to statically
  381. link the reader driver to pcscd. Since the link is static you must
  382. define the IFDHandler API version at compilation time. Either define
  383. IFDHANDLERv1, IFDHANDLERv2 or IFDHANDLERv3
  384. - Use dynamic instead of static allocation for the driver library
  385. filename. The filename is no more limited to 100 characters.
  386. Closes: [#312332] MAX_LIBNAME too short?
  387. - force the return codes SCARD_* to be long since the SCard* functions
  388. return a LONG type
  389. - Add the ability to parse all the configuration files of a directory
  390. instead of just one configuration file. update-reader.conf is then now
  391. obsolete.
  392. - Add --enable-embedded (default is no) to build pcsc-lite for an
  393. embedded system. This will activate the NO_LOG option to disable
  394. logging and limit RAM and disk consumption.
  395. - If NO_LOG is defined then no log are displayed. The idea is to limit
  396. the binaries size on disk and RAM consumption at execution time.
  397. With NO_LOG defined we gain 26% (17 kB) for the .text segment of pcscd
  398. and 15% (4 kB) for the .text segment of libpcsclite.so (for i386)
  399. - Define a minimal pcsc_stringify_error() if NO_LOG is defined. Only the
  400. error code in hex is displayed in this case.
  401. Gain: 2kB of .text (10%) for libpcsclite
  402. - Add --disable-serial and --disable-usb options
  403. --disable-serial removes support of /etc/reader.conf gain: 8.0kB of
  404. .text (12%) and 160 bytes of .bss (4%) for pcscd
  405. --disable-usb removes support of USB hotplug gain: 9.7kB of .text
  406. (14%) and 960 bytes of .bss (23%) for pcscd
  407. If you use both options (and use a static driver configuration) gain:
  408. 17.7kB of .text (26%) and 1152 bytes of .bss (28%) for pcscd
  409. - Better support of Android
  410. - some other minor improvements and bug corrections
  411. pcsc-lite-1.5.5: Ludovic Rousseau
  412. 28 July 2009
  413. - add the reader interface name if provided by the device
  414. - SCardTransmit(): return SCARD_E_UNSUPPORTED_FEATURE if
  415. SCARD_PROTOCOL_RAW is requested by unsupported
  416. - SCardConnect() and SCardReconnect(): set dwActiveProtocol to
  417. SCARD_PROTOCOL_UNDEFINED if SCARD_SHARE_DIRECT is used (conform to
  418. MSDN). Contrary to Windows winscard behavior, the reader is accessed in
  419. shared mode and not exclusive mode if SCARD_SHARE_DIRECT is used.
  420. - SCardControl(): correctly check for buffer overflow (bug introduced in
  421. pcsc-lite 1.5.4)
  422. - some other minor improvements and bug corrections
  423. pcsc-lite-1.5.4: Ludovic Rousseau
  424. 24 June 2009
  425. - SCardGetStatusChange() works again. It was broken in some cases since
  426. version 1.5.2
  427. - detect buffer overflows if pcscd if used by a rogue client
  428. - force access rights on /var/run/pcscd to be sure it can be used by a
  429. libpcsclite client without privileges
  430. - create the PCSCLITE_EVENTS_DIR directory with the sticky bit so only
  431. root or the owner of the event files can remove them
  432. - if RFAddReader() fails with the libhal scheme then we try with the
  433. (old) libusb scheme. This patch should allow proprietary drivers to
  434. work even if pcsc-lite is compiled with libhal support.
  435. - give a higher priority to a specific driver over the CCID Class
  436. driver. This should allow proprietary drivers to be used instead of
  437. libccid when possible
  438. - some other minor improvements and bug corrections
  439. pcsc-lite-1.5.3: Ludovic Rousseau
  440. 29 April 2009
  441. - SCardEstablishContext(): check we do not reuse an already allocated
  442. hContext
  443. Thanks to Daniel Nobs for the bug report and patch
  444. - pcsclite.h: add missing SCARD_E_* and SCARD_W_* return code. They are
  445. unused by pcsc-lite but defined on Windows
  446. - reader.h: add PIN_PROPERTIES_STRUCTURE structure and FEATURE_IFD_PIN_PROPERTIES
  447. Thanks to Martin Paljak for the patch
  448. - remove powermgt_macosx.c since it is using APSL version 1.1 instead of
  449. the BSD-like licence like the other files
  450. Thanks to Stanislav Brabec for the bug report
  451. - avoid a possible crash due to a race condition
  452. Thanks to Matheus Ribeiro for the patch
  453. - change default log level from PCSC_LOG_INFO to PCSC_LOG_ERROR to limit
  454. syslog pollution
  455. - CardDisconnect(): call RFUnlockAllSharing() instead of
  456. RFUnlockSharing() to release all nested locks. The problem occurs if
  457. SCardBeginTransaction() are made without corresponding
  458. SCardEndTransaction(). OpenSC "pkcs11-tool -I" exhibits such a
  459. behavior.
  460. Thanks to Marc Rios Valles for the bug report
  461. - some other minor improvements and bug corrections
  462. pcsc-lite-1.5.2: Ludovic Rousseau
  463. 6 February 2009
  464. - SCardGetStatusChange(): return if the state of the reader changed
  465. since the previous call. Thanks to Thomas Harning for the patch
  466. - SCardCancel() no works as expected. It got broken in version 1.5.0.
  467. Closes: [#311342] SCardCancel does not cancel an outstanding
  468. SCardGetStatusChange
  469. - log TxBuffer and RxBuffer if the SCardControl() command failed.
  470. Closes: [#311376] PCSC_LOG_VERBOSE via -dd; print details of "Card not
  471. transacted"
  472. - add a mutex to avoid a race condition
  473. Closes: [#311377] Race condition in SCardBeginTransaction
  474. - SCardGetStatusChange() may not return if the reader was removed.
  475. - some other minor improvements and bug corrections
  476. pcsc-lite-1.5.1: Ludovic Rousseau
  477. 7 January 2009
  478. - Extended APDU of more than 2048 bytes were corrupted. The problem was
  479. introduced in version 1.3.3 (2 years ago) by making the code compile
  480. with Sun Studio 11.
  481. Thanks to Eric Mounier for the patch
  482. - some other minor improvements and bug corrections
  483. pcsc-lite-1.5.0: Ludovic Rousseau
  484. 18 November 2008
  485. - correctly handle up to PCSCLITE_MAX_READERS_CONTEXTS readers (instead
  486. of PCSCLITE_MAX_READERS_CONTEXTS-1)
  487. - SCardGetStatusChange()
  488. . now returns SCARD_E_TIMEOUT instead of SCARD_S_SUCCESS if dwTimeout
  489. == 0 (conform to Windows XP)
  490. . add support of reader name \\?PnP?\Notification to detect reader
  491. insertion/removal (conform to Windows XP)
  492. . if a reader disappear also set SCARD_STATE_UNAVAILABLE in
  493. dwEventState (more conform to Windows XP)
  494. - SCardStatus(): add support of SCARD_AUTOALLOCATE for pcchReaderLen and
  495. pcbAtrLen
  496. - SCardGetStatusChange() now uses asynchronous events instead of polling
  497. - more and/or better Doxygen documentation
  498. - SCardTransmit(): correctly pass the pioRecvPci parameter
  499. - SCardConnect() and SCardReconnect(): correct a bug when two
  500. applications were calling SCardConnect() or SCardReconnect() at the
  501. exact same time
  502. - pcscd logs the command name sent by the application (when in debug mode)
  503. - some other minor improvements and bug corrections
  504. pcsc-lite-1.4.102: Ludovic Rousseau
  505. 27 June 2008
  506. - pcscd -v now displays the enabled features
  507. - add support of SCARD_AUTOALLOCATE in SCardListReaders(),
  508. SCardListReaderGroups() and SCardGetAttrib
  509. - add SCardFreeMemory()
  510. - try to use the reader polling thread also for the other slots on a
  511. multi-slots reader
  512. - solve a possible crash with SCardCancel() in multithreading environment
  513. - SCardConnect(), SCardReconnect(): do not check the parameter
  514. dwPreferredProtocols if dwShareMode == SCARD_SHARE_DIRECT
  515. This is used on contactless readers to talk to the reader without any
  516. card and "random" value of dwPreferredProtocols
  517. - better support of driver termination (when pcscd exits)
  518. - kill the driver polling thread only if the driver supports it
  519. (declared using TAG_IFD_POLLING_THREAD_KILLABLE)
  520. - generate a .tar.bz2 archive (smaller than the .tar.gz archive)
  521. - some other minor improvements and bug corrections
  522. pcsc-lite-1.4.101: Ludovic Rousseau
  523. 30 April 2008
  524. - support for fork(). Handles are now invalid in the child process
  525. - SCardStatus() returns SCARD_W_REMOVED_CARD instead of
  526. SCARD_W_RESET_CARD when a card has been removed and inserted
  527. - Doxygen improvements
  528. - add support for DragonFly BSD
  529. - some other minor improvements and bug corrections
  530. pcsc-lite-1.4.100: Ludovic Rousseau
  531. 23 March 2008
  532. - add libhal support to avoid polling the USB bus. libusb is still
  533. supported but libhal is now the default
  534. - improve performances in SCardConnect(), SCardReconnect(),
  535. SCardDisconnect(). Thanks to Sean Wykes for the patch
  536. - SCardListReaders(): returns SCARD_E_NO_READERS_AVAILABLE when no
  537. reader are available. Thanks to Thomas Harning for the bug report
  538. - add support of TAG_IFD_POLLING_THREAD to use an asynchronous card
  539. movements detection instead of an active polling. The reader driver
  540. need to support TAG_IFD_POLLING_THREAD to use this feature
  541. - CardCheckDaemonAvailability(): lower the priority of the log message
  542. in case of "PCSC Not Running" or "PCSC restarted" so that nothing is
  543. logged by default. PCSCLITE_DEBUG can be defined to see the message.
  544. Programs linked with libpcsclite will not display anything if pcscd is
  545. not running. Solves Red Hat bug 428299.
  546. - default log level is PCSC_LOG_CRITICAL+1 so that NO log is sent to
  547. stderr by default. You need to explicitly set PCSCLITE_DEBUG to have
  548. logs. (in a library stderr(2) can be any file opened with fd=2 so
  549. should not be used)
  550. - ifdhandler-3.tex: more details about deviceName argument of
  551. IFDHCreateChannelByName()
  552. - some other minor improvements and bug corrections
  553. pcsc-lite-1.4.99: Ludovic Rousseau
  554. 9 January 2008
  555. - add support of mix 32/64 bits platforms. Thanks to Jacob Berkman for
  556. the big patch
  557. - increase MAX_READERNAME from 52 to 100
  558. - default ipcdir is /var/run/pcscd instead of /var/run so the directory
  559. can be shared locally between 32/64 bits systems on chroots
  560. - display time delta between two lines of logs when printed to stderr
  561. - return EXIT_SUCCESS (instead of EXIT_SUCCESS) if parsing
  562. /etc/reader.conf fails.
  563. - performance improvement when powering a card after insertion
  564. - some other minor improvements and bug corrections
  565. pcsc-lite-1.4.4: Ludovic Rousseau
  566. 14 August 2007
  567. - do not call a Log function in a signal handler and do hotplug
  568. synchronously. See Debian bug #430492 Thanks to Russell Stuart
  569. - support LSB init scritp format
  570. - better support of Solaris and Mac OS X
  571. - some other minor improvements and bug corrections
  572. pcsc-lite-1.4.3: Ludovic Rousseau
  573. 19 June 2007
  574. - correctly handle lock (SCardBeginTransaction) when the locked card is
  575. removed.
  576. - correct a buffer overflow introduced in 1.4.2 when extended APDU are
  577. used
  578. - some other minor improvements and bug corrections
  579. pcsc-lite-1.4.2: Ludovic Rousseau
  580. 23 May 2007
  581. - add a Lock counter so that SCardBeginTransaction/SCardEndTransaction
  582. can be nested
  583. - SCardDisconnect(): do not block if dwDisposition == SCARD_LEAVE_CARD.
  584. We block only for SCARD_UNPOWER_CARD, SCARD_RESET_CARD and
  585. SCARD_EJECT_CARD since that would impact other running transactions
  586. - LPTSTR and LPCTSTR types are no more deprecated since they are found
  587. in many applications. And using them is not a problem.
  588. - some other minor improvements and bug corrections
  589. pcsc-lite-1.4.1: Ludovic Rousseau
  590. 16 May 2007
  591. - do not limit the execution of an APDU to 2 minutes (Thanks to Harsh
  592. Sangal for the bug report)
  593. - if the daemon is restarted we invalidate all the existing handles so
  594. SCard functions returns SCARD_E_INVALID_HANDLE
  595. - SCardReconnect(): block instead of returning SCARD_E_SHARING_VIOLATION
  596. - clean the data buffer for SCardTransmit() to clean the APDU buffer to
  597. remove any possible PIN or secret value (Thanks to Nils Larsch for the
  598. patch)
  599. - SCardGetStatusChange(): add a counter in the upper word of
  600. dwEventState so it is possible to detect a card movement between two
  601. calls to SCardGetStatusChange() (Thanks to Matheus Ribeiro for the
  602. patch)
  603. - SCardGetStatusChange(): do not check for SCARD_STATE_ATRMATCH,
  604. SCARD_STATE_EXCLUSIVE or SCARD_STATE_INUSE bits when the card is not
  605. present. (thanks to Matheus Ribeiro for the bug report)
  606. - some other minor improvements and bug corrections
  607. pcsc-lite-1.4.0: Ludovic Rousseau
  608. 13 February 2007
  609. - great speed improvements for SCardBeginTransaction(), SCardReconnect()
  610. and SCardDisconnect()
  611. - SCardConnect(): return SCARD_W_UNPOWERED_CARD if the card is mute
  612. instead of returning SCARD_E_PROTO_MISMATCH because the requested
  613. protocol is not supported by the (mute) card
  614. - Ctrl-C works again to stop pcscd on FreeBSD
  615. - USB polling was not active even if a driver does not support
  616. IFD_GENERATE_HOTPLUG.
  617. - split pcsclite.h in pcsclite.h and an internal pcscd.h. Some
  618. application compilations may fail but should not
  619. - move RESPONSECODE definition from wintypes.h to ifdhandler.h since it
  620. should only be used as return type of IFDHandler functions. Some
  621. driver compilations may fail
  622. - some other minor improvements and bug corrections
  623. pcsc-lite-1.3.3: Ludovic Rousseau
  624. 19 January 2007
  625. - add -H --hotplug argument to ask the pcscd daemon to rescan the
  626. avaiable readers
  627. - add support for IFD_GENERATE_HOTPLUG bit in driver Info.plist
  628. ifdCapabilities
  629. - add --force-reader-polling to ignore the IFD_GENERATE_HOTPLUG bit in
  630. driver Info.plist ifdCapabilities (pcscd will poll the USB bus every 1
  631. second as in previous versions)
  632. - SCardConnect() & SCardDisconnect(): wait until any transaction
  633. finishes before going on. This avoids the possibility to reset a card
  634. in the middle of a transaction Thanks to Martin Paljak for the bug
  635. report
  636. - the tools installifd and formaticc are now completely outdated and
  637. should not be used anymore.
  638. - PCSC/ifdhandler.h: add IFD_NO_SUCH_DEVICE for readers supporting
  639. hotplug
  640. - PCSC/pcsclite.h: add SCARD_E_NO_READERS_AVAILABLE
  641. - SCardControl(): do not limit cbSendLength to MAX_BUFFER_SIZE bytes
  642. since we now transparently support up to MAX_BUFFER_SIZE_EXTENDED
  643. bytes. Thanks to Martin Führlinger for the bug report
  644. - SCardGetAttrib()/SCardSetAttrib(): if the driver returns IFD_ERROR_TAG
  645. we return SCARD_E_UNSUPPORTED_FEATURE instead of the generic error
  646. code SCARD_E_NOT_TRANSACTED
  647. - implement SCardIsValidContext() PC/SC call
  648. - some other minor improvements and bug corrections
  649. pcsc-lite-1.3.2: Ludovic Rousseau
  650. 11 August 2006
  651. - add support of extended APDU in the standard configuration and in a
  652. backward compatible way: pcscd 1.3.2 can be used with libpcsclite <=
  653. 1.3.2
  654. - define MAX_BUFFER_SIZE_EXTENDED as the maximal size allowed for a
  655. extended APDU (64KB)
  656. - LPCTSTR and LPTSTR types are deprecated. Use LPCSTR and LPSTR instead
  657. - Dual licence src/error.c so it can be used bu OpenSC. It is now
  658. BSD-like, see the COPYING file and GNU Lesser General Licence 2.1 or
  659. (at your option) any later version
  660. - document that the 4 bytes field value in PCSC_TLV_STRUCTURE is always
  661. in big endian as documented in PCSC v2 part 10 ch 2.2 page 2. You can
  662. use ntohl() to convert the value. Thanks to Ulrich Vogl for the bug
  663. report
  664. - some other minor improvements and bug corrections
  665. pcsc-lite-1.3.1: Ludovic Rousseau
  666. 22 April 2006
  667. - improve support of Solaris
  668. - correct a bug when two clients are connecting at the same time
  669. - better documentation for ./configure arguments
  670. - doc/ifdhandler-3.tex: improve IFD handler documentation
  671. - doc/pcsc-lite.tex: document VERIFY_PIN and MODIFY_PIN commands using
  672. PCSCv2 part 10 instead of the "proprietary" mechanism now unsupported
  673. - doc/pcsc-lite.tex: document log_msg and log_xxd
  674. - use fprintf(stderr,) instead of syslog(3) to log messages from libpcsclite
  675. - use PCSCLITE_DEBUG to activate the debug messages in libpcsclite.
  676. MUSCLECARD_DEBUG is now used for libmusclecard only
  677. - add the reader serial number in the reader name only if
  678. ADD_SERIAL_NUMBER is defined
  679. - some other minor improvements and bug corrections
  680. pcsc-lite-1.3.0: Ludovic Rousseau
  681. 3 March 2006
  682. - new official stable version since 1.2.0 in October 2003. Many thanks
  683. to all the bug reporters and bug fixers
  684. - libmusclecard is now in a independent package
  685. - (re)allow compilation on Solaris
  686. - SCardReleaseContext(): do not check that the thread releasing the
  687. context is the one that established it. This check is not performed on
  688. Windows and creates portability problems See
  689. http://archives.neohapsis.com/archives/dev/muscle/2006-q1/0134.html
  690. - automatically call SCardUnload() when the libpcsclite library is
  691. unloaded Thanks to Najam Siddiqui. See
  692. http://archives.neohapsis.com/archives/dev/muscle/2006-q1/0177.html
  693. - some other minor improvements and bug corrections
  694. pcsc-lite-1.2.9-beta10: Ludovic Rousseau
  695. 3 February 2006
  696. - if the USB reader defines a serial number then include it in the
  697. reader name (between parenthesis)
  698. - the library libpcsclite.so.1 only exports the symbols defined by the
  699. API (http://pcsclite.alioth.debian.org/pcsc-lite/). This is needed to
  700. be able to use the library in an appliation that also uses flex (like
  701. muscleTool). The problem only occurs with GCC >= 4.0
  702. - some other minor improvements and bug corrections
  703. pcsc-lite-1.2.9-beta9: Ludovic Rousseau
  704. 27 November 2005
  705. - add/improve support of PIN pad readers
  706. . define HOST_TO_CCID_16() and HOST_TO_CCID_32() macro to convert 16 and
  707. 32-bits data to the CCID format (replace HOST_TO_CCID)
  708. - add support of SUN C compiler and try to avoid GCC specific features
  709. (Heiko Nardmann)
  710. - SCardGetStatusChange():
  711. . exists if the list of readers changed (one reader added) so that the
  712. application can update its list of readers (Najam Siddiqui)
  713. . correct a bug when two contexts where used (Najam Siddiqui)
  714. - add support of Solaris 10 IFDhandler (Douglas E. Engert)
  715. - allow pcsc-lite to be compiled without (f)lex installed
  716. - add a TODO file. Help/money needed here.
  717. - improve Doxygen documentation
  718. - some other minor improvements and bug corrections
  719. pcsc-lite-1.2.9-beta8: Ludovic Rousseau
  720. 6 September 2005
  721. - correct a crash on Fedora Core 4 (off by 1 buffer overflow)
  722. - do not silently truncate the reader, library or device name if they
  723. are too long but display an error message instead
  724. - reinclude musclecard library in pcsc-lite package since a lot of code
  725. is shared. The separation was a mistake
  726. - add colorization of the logs when sent to stderr. The color depends on
  727. the priority level
  728. - restrict the number of symbols (function names) exported from
  729. libpcsclite.so to limit symbol conflicts with other libraries. Only
  730. the PC/SC API symbols should be exported
  731. - add Doxygen documentation. Thanks to Luiz Reuter Silva Torro.
  732. HTML pages available at
  733. http://pcsclite.alioth.debian.org/doxygen/html/index.html
  734. - SCardControl(): a 0 byte long pbSendBuffer is no more rejected since
  735. the command is in dwControlCode. Thanks to Martin Paljak for the patch
  736. - provide a reader.h file (by default in /usr/local/include/PCSC/reader.h)
  737. that contains definitions shared between an application and a smart
  738. card driver (like SCARD_CTL_CODE, CM_IOCTL_GET_FEATURE_REQUEST,
  739. FEATURE_* and HOST_TO_CCID)
  740. - pcscd: allow a serial hotplug by sending a SIGUSR1 signal. The
  741. /etc/reader.conf file is re-read and reader presence/abscence is updated
  742. - musclecard library: small bug fixes
  743. - pcsc-lite SCF: small bug fixes
  744. - some other minor improvements and bug corrections
  745. pcsc-lite-1.2.9-beta7: Ludovic Rousseau
  746. 2 March 2005
  747. - SCARD_PROTOCOL_ANY is defined as (SCARD_PROTOCOL_T0|SCARD_PROTOCOL_T1)
  748. You should not use SCARD_PROTOCOL_ANY since it is not defined in
  749. Windows PC/SC. It is just defined for backward source code compatibility
  750. - define SCARD_STATE_UNPOWERED even it is a state never used so source
  751. code using it can compile
  752. - SCardStatus(): pdwState and pdwProtocol parameters may be NULL (mimic
  753. Windows)
  754. - provide a script update-reader.conf to update the /etc/reader.conf
  755. file from /etc/reader.conf.d/* files
  756. This script is called by /etc/init.d/pcscd before starting the daemon
  757. - add support of SCardGetAttrib() with a NULL pbAttr parameter to only
  758. get the needed lenth in pcbAttrLen
  759. - SCardReconnect() now works after a card movement. Previously
  760. SCardReconnect() returned "Card was removed" even if the new card is
  761. reseted.
  762. - SCardGetStatusChange(): greatly improve performances. Thanks to Oivind
  763. H. Danielsen
  764. - SCardControl(): check if the pbSendBuffer is NULL or no bytes are sent
  765. for driver API v2 only. With API v3 we can use dwControlCode as the
  766. only data to send.
  767. - Implement the dynamic level logging in pcscd
  768. The new command line options are:
  769. -d, --debug display lower level debug messages
  770. --info display info level debug messages (default level)
  771. --error display error level debug messages
  772. --critical display critical only level debug messages
  773. - some documentation update
  774. pcsc-lite-1.2.9-beta6: Ludovic Rousseau
  775. 15 August 2004
  776. - The debug messages are now displayed by default. This prevented error
  777. messages generated by a wrong /etc/reader.conf parsing to be displayed
  778. - thread management:
  779. . threads are now created with the PTHREAD_CREATE_DETACHED attribute
  780. so that resources are released when the thread ends. Thanks to
  781. Michael Gold for the patch.
  782. Previous versions of pcscd just died after 256 clients connections.
  783. - remove PCSC/ from the header files path since the path is given by
  784. pkg-config --cflags libpcsclite or the correct -I directive
  785. - src/winscard_svc.c:
  786. . MSGCleanupClient(): always reset all the fields. Thanks to Michael
  787. Gold for the patch.
  788. - src/configfile.l:
  789. . if the file referenced by DEVICENAME can't be use (because it is not
  790. a correct filename) we now display:
  791. You should use 'DEVICENAME /dev/null' if your driver does not use this field
  792. - src/winscard.c:
  793. . Avoid generating a PPS request that would not be just after a power
  794. up. The previous code worked only when the card was _reseted_ at
  795. SCardDisconnect() but not when SCARD_LEAVE_CARD was used.
  796. - correctly manage multi-slots readers
  797. - etc/pcscd.init:
  798. . updated to reflect the RPM version. Thanks to Ville Skyttä & Fritz Elfert
  799. - doc/example/pcsc_demo.c:
  800. . add SCardTransmit() code sample
  801. - src/testpcsc.c:
  802. . add a "(don't panic)" after a "Transaction failed." if it is not a
  803. critical failure.
  804. - doc/pcsc-lite.tex:
  805. . the function SCardSetTimeout() is deprecated and does nothing
  806. - doc/ifdhandler-3.tex:
  807. . add documentation for IFDHGetCapabilities(..., TAG_IFD_THREAD_SAFE, ...),
  808. IFDHGetCapabilities(..., TAG_IFD_SLOT_THREAD_SAFE, ...) and
  809. IFDHSetCapabilities(..., TAG_IFD_SLOTNUM, ...)
  810. - some internal changes and bugs corrections
  811. pcsc-lite-1.2.9-beta5: Ludovic Rousseau
  812. 16 July 2004
  813. - src/PCSC/wintypes.h:
  814. . add type LPSTR (again) so that "old" drivers and applications can
  815. compile but mark the type deprecated.
  816. See http://gcc.gnu.org/onlinedocs/gcc-3.1/gcc/Type-Attributes.html
  817. - src/tokenfactory.c:
  818. . TPSearchBundlesForAtr(): use "%s/%s" insead of "%s%s" when
  819. generating the MuscleCard bundle name on MacOSX
  820. - src/winscard.c:
  821. . SCardControl() (new API) can now be used with a IFDHandler v2.0 or v3.0.
  822. The previous code was broken and only worked with an IFDHandler v3.0
  823. (crashed with a v2.0).
  824. - src/PCSC/ifdhandler.h:
  825. . IFDHControl(): use PUCHAR instead of LPCVOID and LPVOID so the
  826. driver can use TxBuffer[x] without needing a cast.
  827. . it is now possible to compile a IFDHandler v2.0 with this include
  828. file. Just #define IFDHANDLERv2 in your source code before
  829. #include <ifdhandler.h>
  830. By default it is setup for for most recent version of the API (V3.0)
  831. pcsc-lite-1.2.9-beta4: Ludovic Rousseau
  832. 3 July 2004
  833. - src/libmusclecard.pc.in and src/libpcsclite.pc.in
  834. . includedir is now @includedir@/PCSC
  835. . add pthread flags for compilation and link
  836. . thanks to Ville Skyttä for these patches.
  837. They are small but are mandatory to (re)compile muscleTools (and
  838. others) without modification to their Makefile.
  839. pcsc-lite-1.2.9-beta3: Ludovic Rousseau
  840. 30 June 2004
  841. - src/hotplug_libusb.c:
  842. . use a dynamic array for available USB drivers:
  843. - avoid a buffer overflow (argh!)
  844. - allow to use more than 16 drivers/supported readers
  845. - src/Makefile.am:
  846. . install mscdefines.h, winscard.h, musclecard.h, pcsclite.h and wintypes.h
  847. in /usr/include/PCSC/ to not pollute /usr/include/
  848. . install ifdhandler.h, debuglog.h and parser.h in /usr/include/PCSC/ so
  849. drivers can use them for compilation.
  850. Modify your source code or add -I/usr/include/PCSC to CFLAGS in your
  851. Makefile or, better, use CFLAGS=`pkg-config libpcsclite --cflags`
  852. - doc/pcsc-lite.tex:
  853. . dwPreferredProtocols is a bit mask of acceptable protocols
  854. . SCARD_SHARE_DIRECT can be used to talk to the reader without a card
  855. inserted
  856. . add "Some SCardControl commands" section (IFD_EXCHANGE and VERIFY_PIN)
  857. . add documentation for LTPBundleFindValueWithKey(), debug_msg() and
  858. debug_xxd()
  859. - src/configfile.l: (/etc/reader.conf parser):
  860. . allow ':' in DEVICENAME. use ':' to indicate a non-real device (pcscd does
  861. not test for its existence as a file). You can use this in something like
  862. "net://1.2.3.4/foobar" to indicate a reader on a remote machine like an
  863. X11 terminal.
  864. - src/PCSC/wintypes.h:
  865. . Change the names of the types LPCSTR to LPCTSTR and LPSTR to LPTSTR to be
  866. compliant with the Microsoft SCard API. You will have to update your
  867. source codes.
  868. - src/readerfactory.c:
  869. . rework RFSetReaderName() to simply the code and always start with the
  870. lowest number available (like in previous pcsc-lite version)
  871. - src/prothandler.c:
  872. . completely redesign the function so that IFDSetPTS() is always called to
  873. tell the driver which protocol to use and to initialise its internal
  874. state. The driver now knows which protocol (T=0 or T=1) the application
  875. wants to use even if the card only support only one protocol.
  876. - src/atrhandler.c:
  877. . add support of specific mode by the presence of TA2 (protocol not
  878. negociable)
  879. - src/utils/Makefile.am:
  880. . install bundleTool and installifd in [...]/sbin/ instead of [...]/bin/
  881. - doc/example/Makefile.am:
  882. . do not install pcsc_demo since it is just a sample code for developers
  883. that is not supposed (the code) to do anything useful
  884. - doc/example/pcsc_demo.c:
  885. . replace SCARD_PROTOCOL_ANY by SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1 since
  886. SCARD_PROTOCOL_ANY is _not_ defined by Microsoft PC/SC and is not equals
  887. to SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1 in pcsc-lite
  888. - and lots of other minor and/or internal only changes
  889. pcsc-lite-1.2.9-beta2: Ludovic Rousseau
  890. 11 May 2004
  891. - change libmusclecard current version to 1 so that old libmusclecard0 and new
  892. libmusclecard1 can cohabit on the same system and will not break existing
  893. programs during upgrades.
  894. This is because libmusclecard is provided in the same distrib/package as
  895. libpcsclite. If we want two libpcsclite to cohabit we must also ensure
  896. that the two libmusclecard can also cohabit.
  897. - src/pcscdaemon.c: print pcsc-lite version number during startup
  898. - src/winscard.c: in SCardReconnect(), SCardDisconnect() and
  899. SCardEndTransaction() SCARD_UNPOWER_CARD is "Power down the card and reset
  900. it (Cold Reset)" so we really power down _and_ then power up the card.
  901. - doc/pcsc-lite.tex: add the chapter "Multithreading and contexts"
  902. - doc/ifdhandler-3.tex: IFD Handler API in LaTeX format
  903. - correct some minor typos in documentation and output texts
  904. pcsc-lite-1.2.9-beta1: Ludovic Rousseau
  905. 6 May 2004
  906. - configure: add support of --enable-extendedapdu argument to allow the use of
  907. big APDUs (APDU size between 256-Bytes and 128-KBytes)
  908. - API changes:
  909. . SCardControl() API changed to be similar to the Microsoft PC/SC
  910. implementation
  911. . add SCardGetAttrib()/SCardSetAttrib() functions
  912. . the driver need to be compliant to IFDHandler API v3 to support these new
  913. functions
  914. - multithreading:
  915. Damien Sauveron added the support of multiplexing multi-readers
  916. communications. In the previous version the communications were serialized
  917. and not simultaneous even if it was not needed. Thanks Damien.
  918. - src/pcscdaemon.c:
  919. . remove the warning if no /etc/reader.conf is found. It is normal to not
  920. have an /etc/reader.conf for USB readers only.
  921. . send debug to syslog by default
  922. . send debug to stderr if --foreground|-f is used (no need to add
  923. --debug stderr anymore)
  924. - doc/pcsc-lite.pdf: doc improved to add the new functions and API. The doc is
  925. now generated from a LaTeX file (easier to maintain, html version available,
  926. much more nice, etc.)
  927. - src/testpcsc.c:
  928. . added tests for the new functions SCardGetAttrib(), SCardSetAttrib() and
  929. SCardControl() and also the old SCardListReaderGroups()
  930. . do not ask for reader number if only one reader is present
  931. . some more debug
  932. - pcscd and libpcsclite now exchange a protocol version to know what API to
  933. use. This will be useful if/when the API change again
  934. - change library version to 1:0:0 since the interface changed
  935. - hotplug: the daemon pcscd do not try to restart drivers anymore when it is
  936. exiting
  937. - src/hotplug_libusb.c:
  938. . do not try to restart a USB driver if the first execution fails (because
  939. of a bug in the driver or whatever) since the next execution of the driver
  940. will, with a great probability, also fail. The user has to unplug/replug
  941. the reader to restart the driver. This prevents to fill the system logs
  942. with an error message every 1 second.
  943. . use deviceName defined as usb:idVendor/idProduct:libusb:busname:filename
  944. in HPAddHotPluggable(). This should avoid wrong USB enumeration when used
  945. in IFDHCreateChannelByName()
  946. - src/hotplug_macosx.c:
  947. . buffer overflow: the driver list was not terminated and caused crashes.
  948. - src/winscard.c:
  949. . remove the code to map SCARD_UNPOWER_CARD on IFD_RESET.
  950. SCARD_UNPOWER_CARD is power down and power up (cold reset) => IFD_POWER_DOWN
  951. SCARD_RESET_CARD is just power up (warm reset) => IFD_RESET
  952. - src/winscard.h:
  953. . use SCARDCONTEXT, DWORD, LPSCARDHANDLE, etc. instead of long, unsigned
  954. long, long *, etc. to be more Windows PC/SC compliant
  955. - doc/reader.conf.5.in: new manpage to make it clear that this configuration
  956. file SHOULD not be used for USB readers
  957. - src/configfile.l:
  958. . print a warning if the LIBPATH contains ".bundle". USB drivers SHOULD NOT
  959. be declared in reader.conf
  960. . Check that DEVICENAME and LIBPATH files exist and if an error occurs
  961. during the parsing the reader is not added and pcscd exit.
  962. - doc/example/pcsc_demo.c:
  963. . recode the readers enumeration to avoid the use of
  964. PCSCLITE_MAX_READERS_CONTEXTS. You do not and should not need
  965. PCSCLITE_MAX_READERS_CONTEXTS. Use a dynamic management instead.
  966. . add SCardReconnect() sample code
  967. . allow to select the reader number instead of always selecting the first
  968. reader
  969. . some minor debug
  970. - src/musclecard.c:
  971. . Initialize currentToken->tokenType in MSCListTokens(). Closes "[ #300607 ]
  972. MSCListTokens should set tokenType to know state before OR operation"
  973. - src/tokenfactory.c:
  974. . correct atrString[] buffer size. The ATR is in ASCII so it must be
  975. MAX_ATR_SIZE*2 +1. This was problematic for cards with a "long" ATR.
  976. - src/readerfactory.c:
  977. . initialize vHandle field to NULL in RFAllocateReaderSpace() (caused a
  978. crash under MacOS X)
  979. - aclocal/acx_pthread.m4:
  980. . new upstream version to avoid checking for pthread.h which does not exist
  981. on *BSD
  982. - src/libmusclecard.pc.in, src/libpcsclite.pc.in:
  983. . add muscledropdir (in libmusclecard) and usbdropdir (in libpcsclite) so we
  984. can use `pkg-config libpcsclite --variable=usbdropdir` to find the
  985. directory to use. Should be used by drivers and plugins installation.
  986. Thanks to Ville Skyttä for the patch.
  987. - many other minor patches and corrections. Read ChangeLog.cvs for a complete
  988. list
  989. pcsc-lite-1.2.0: Ludovic Rousseau
  990. 27 october, 2003
  991. - the 1.2.0 version is the same as 1.2.0-rc3 version
  992. pcsc-lite-1.2.0-rc3: Ludovic Rousseau
  993. 15 october, 2003
  994. - src/winscard_msg.c: perform a round-robbin among clients to avoid starvation
  995. under heavy load. Patch from Bettina Martelli.
  996. - src/winscard_clnt.c: send debug to stdout only if the environment variable
  997. MUSCLECARD_DEBUG is defined
  998. - src/libmusclecard.pc.in: add a new pkg-config file for application using
  999. libmusclecard.
  1000. - a lot of code and build clean up by Antti Tapaninen
  1001. - some code clean up and debug by Damien Sauveron
  1002. pcsc-lite-1.2.0-rc2: Ludovic Rousseau
  1003. 4 September, 2003
  1004. - removed a very _stupid_ bug that linked libpcsclite with libusb. Any
  1005. application linked with libpcsclite was also linked with libusb.
  1006. - generate a new library libmusclecard and remove MuscleCard code from
  1007. libpcsclite. An application using MuscleCard functions needs to explicitly
  1008. link with libmusclecard.
  1009. - src/winscard_clnt.c: add a new function SCardUnload() to free allocated
  1010. resources. It is mandatory only if you use dlopen/dlclose to often
  1011. load/unload the library. Otherwi se you will exhaust the resources
  1012. available and get a crash. Thanks to Guy Moreillon for the patch.
  1013. - src/muscletest.c: code cleaning
  1014. pcsc-lite-1.2.0-rc1: Ludovic Rousseau
  1015. 26 August, 2003
  1016. - configure.in: --enable-usb is now deprecated and off by default.
  1017. --enable-libusb is selected by default and will be used if libusb is
  1018. installed in /usr. If libusb is installed in /usr/local use
  1019. --enable-libusb=/usr/local
  1020. - src/hotplug_macosx.c: Add support of reader aliases using <array></array> in
  1021. driver Info.plist on MacOS X.
  1022. The old syntax did not work since pcscd on MacOS X wants a correct XML file.
  1023. The new syntax is:
  1024. <key>ifdVendorID</key>
  1025. <array>
  1026. <string>0x08E6</string> <!-- 1, Gemplus -->
  1027. <string>0x04E6</string> <!-- 2, SCM Microsystems -->
  1028. <string>0x076B</string> <!-- 3, OmniKey -->
  1029. <string>0x0783</string> <!-- 4, C3PO -->
  1030. </array>
  1031. <key>ifdProductID</key>
  1032. <array>
  1033. <string>0x3437</string> <!-- 1 -->
  1034. <string>0x5115</string> <!-- 2 -->
  1035. <string>0x3021</string> <!-- 3 -->
  1036. <string>0x0003</string> <!-- 4 -->
  1037. </array>
  1038. <key>ifdFriendlyName</key>
  1039. <array>
  1040. <string>GemPC Twin</string> <!-- 1 -->
  1041. <string>SCR 335</string> <!-- 2 -->
  1042. <string>CardMan 3121</string> <!-- 3 -->
  1043. <string>LTC31</string> <!-- 4 -->
  1044. </array>
  1045. - src/powermgt_macosx.c, src/hotplug_macosx.c and some others: Add support of
  1046. PCMCIA for MacOS X. Thanks to Stephen M. Webb.
  1047. - src/hotplug_libusb.c: Add support of libusb. Allow to use USB readers on
  1048. *BSD or any plateform supported by libusb. Thanks to Toni Andjelkovic for
  1049. the great job.
  1050. I also redesigned the code to support up to PCSCLITE_MAX_READERS readers
  1051. whatever the driver they use.
  1052. - src/musclecard.c:
  1053. . fix an initialisation problem of pConnection->shareMode (thanks to Wan-Teh
  1054. Chang)
  1055. . avoid a memory leak (Toni Andjelkovic)
  1056. - doc/example: sample demo application using pcsc-lite API
  1057. - src/winscard.c:
  1058. . pcscd reported card is present when there is no card in the reader
  1059. . return SCARD_E_INVALID_PARAMETER for APDU of less than 4 bytes
  1060. - src/winscard_svc.c: Sometimes unknown APDUs were being transmitted when
  1061. 'SCardStatus' function was invoked
  1062. - some code cleanup and compilation problems removed.
  1063. pcsc-lite-1.1.2beta5: Ludovic Rousseau
  1064. 30 May, 2003
  1065. - src/winscard.c: SCardStatus(): do not return before filling buffers
  1066. - src/winscard_clnt.c: SCardStatusTH(): simplify code and return correct
  1067. results when buffers are too short or NULL is used
  1068. - src/libpcsclite.pc.in: used to generated a pkg-config ".pc" file (thanks to
  1069. Andreas Jellinghaus for the idea and the patch)
  1070. - configure.in, src/Makefile.am, src/utils/installifd.c, doc/bundleTool.8.in,
  1071. doc/pcscd.8.in, etc/reader.conf.in:
  1072. . correct typos and include path configured by ./configure appear in the
  1073. docs (thanks to Ville Skyttä)
  1074. - src/utils/installifd.c:
  1075. . replace gets() by fgets() to avoid buffer overflow.
  1076. . Use sizeof() instead of constants.
  1077. . do not use strdup() since it is useless.
  1078. . print error messages when needed.
  1079. pcsc-lite-1.1.2beta4: Ludovic Rousseau
  1080. 13 Apr, 2003
  1081. - src/debuglog.c:
  1082. . DebugLogSetLogType() set flags and not just _or_ them (allow unset)
  1083. . use strncpy to avoid a possible buffer overflow
  1084. - src/hotplug_linux.c:
  1085. . code cleanup
  1086. . support for driver aliases in Info.plist. The syntax is:
  1087. <key>ifdProductString</key>
  1088. <string>GemPC430</string>
  1089. <key>ifdVendorID</key>
  1090. <string>0x08E6</string>
  1091. <string>0x08E6</string>
  1092. <string>0x08E6</string>
  1093. <key>ifdProductID</key>
  1094. <string>0x0430</string>
  1095. <string>0x0432</string>
  1096. <string>0x0435</string>
  1097. <key>ifdFriendlyName</key>
  1098. <string>GemPC430</string>
  1099. <string>GemPC432</string>
  1100. <string>GemPC435</string>
  1101. So this driver will be used by the three possible readers.
  1102. - src/Makefile.am:
  1103. . support for driver aliases in Info.plist (use tokenparser.l instead of
  1104. driverparser.l)
  1105. . support for xBSD back
  1106. - src/pcsclite.h:
  1107. . rename "pcsc.pub" and "pcsc.comm" in "pcscd.pub" and "pcscd.comm"
  1108. - src/tokenparser.l:
  1109. . code reindentation
  1110. . use DebugLogB()/DebugLogC with correct number of arguments
  1111. - src/tokenparser.l:
  1112. . regenerated from src/tokenparser.l
  1113. pcsc-lite-1.1.2beta3: Ludovic Rousseau, David Corcoran
  1114. 7 Nov, 2002
  1115. - Support for Sun Microsystems' SCF
  1116. - Patches from Dmitry Djachenko to:
  1117. . init g_rgSCard??Pci variable at compile time
  1118. . return more meaningfull error codes in SCardReconnect()
  1119. . return more information in SCardStatus()
  1120. . accept pioRecvPci == NULL in SCardTransmit()
  1121. according to MSDN (July 2002) : SCardTransmit description
  1122. pioRecvPci
  1123. [in, out] Pointer to the protocol header structure for the instruction,
  1124. followed by a buffer in which to receive any returned protocol control
  1125. information (PCI) specific to the protocol in use. This parameter may be
  1126. NULL if no returned PCI is desired.
  1127. - correct an overflow in SCardGetStatusChange(). Thanks to Michael Nidd
  1128. - configure.in, src/pcscdaemon.c, src/pcsclite.h:
  1129. . add --enable-ipcdir=DIR option. Default is now /var/run/ instead of
  1130. /tmp/pcsc/
  1131. - src/Makefile.am:
  1132. . reorganise conditionals to to have a src/Makefile.in file 142 (yes 142)
  1133. times smaller (33 KB instead of 4.7 MB)
  1134. - src/eventhandler.c:
  1135. . add filename and error message to error logs for /var/run/pcsc.pub
  1136. - src/debuglog.h:
  1137. . DebugLogC() uses 3 parameters not 2 (use DebugLogB() for that)
  1138. pcsc-lite-1.1.2beta2: Ludovic Rousseau, David Corcoran, Jean-Luc Giraud
  1139. 12 Oct, 2002
  1140. - OpenBSD 3.1 and FreeBSD 4.7RC2 debug and testing
  1141. - MacOSX debug and improvement
  1142. - support multiple identical USB readers under GNU/Linux
  1143. - more debug
  1144. - Bug in winscard.c for protocol when ANY is chosen
  1145. pcsc-lite-1.1.2beta1: (Ludovic Rousseau <ludovic.rousseau@free.fr>)
  1146. 6 Sep, 2002
  1147. - src/tokenfactory.c, configure.in and bundleTool.c:
  1148. . add support for --enable-muscledropdir=DIR
  1149. - README:
  1150. . The licence file is COPYING and not LICENSE (thanks to Juha Tuomala)
  1151. - doc/formaticc.1:
  1152. . add formaticc.1 manpage from Debian
  1153. - doc/bundleTool.1:
  1154. . update and rename from .8 to .1
  1155. - src/utils/formaticc.c:
  1156. . lots of debug and buffer overflow removal
  1157. - src/ifdwrapper.c, src/debuglog.c, doc/pcscd.8:
  1158. . add support for --apdu|-a
  1159. - src/pcscdaemon.c:
  1160. . add support for --apdu, test if the pcscd is still running before
  1161. complaining that /tmp/pcsc is present
  1162. . print an error message if the --debug argument is not known
  1163. - src/Makefile.am:
  1164. . add -Wl,--export-dynamic link option
  1165. - src/hotplug_linux.c:
  1166. . add support for --enable-usbdropdir=DIR
  1167. pcsc-lite-1.1.1: (David Corcoran <corcoran@linuxnet.com>)
  1168. 5 Jun, 2002
  1169. - src/readerfactory.c
  1170. . Fixed multiple slot handling by adding dwFeeds to multiple slots
  1171. - src/winscard_clnt.c
  1172. . Fixed multi Establish/Release Context problem by removing CleanupClient
  1173. pcsc-lite-1.1.0: (David Corcoran <corcoran@linuxnet.com>)
  1174. 28 May, 2002
  1175. - src/mscdefines.h added
  1176. - src/musclecard.c/.h added
  1177. . Added client side token/card plugin interface
  1178. - src/tokenfactory.c added
  1179. - src/powermgt_macosx.h added
  1180. - src/powermgt_macosx.c added
  1181. . Support for sleep mode on OS X
  1182. - src/tokenparser.l added
  1183. - src/dyn_hpux modified with new include <errno.h>
  1184. - src/winscard_svc.c
  1185. . Added session checking so rogue clients cannot steal hCard values
  1186. - src/readerfactory.c
  1187. . removed world writable files in /tmp/pcsc
  1188. - configure.in
  1189. . Added support for SCF with SCF plugin
  1190. - Added command line arguments for debug/daemon mode <cprados@yahoo.com>
  1191. - Previous additions from Ludovic Rousseau <ludovic.rousseau@free.fr>
  1192. pcsc-lite-1.0.2beta5: (Ludovic Rousseau <ludovic.rousseau@free.fr>)
  1193. 10 Mar, 2002
  1194. - src/pcscdaemon.c:
  1195. . move the pid file creation earlier (before drivers loading)
  1196. . allow to properly kill pcscd before or during driver loading
  1197. this is useful when the driver init is buggy
  1198. - src/pcsclite.h: change PCSCLITE_VERSION_NUMBER to 1.0.2.beta5
  1199. - configure.in: change version number to 1.0.2.beta5
  1200. pcsc-lite-1.0.2beta4: (Ludovic Rousseau <ludovic.rousseau@free.fr>)
  1201. 13 Feb, 2002
  1202. - configure.in: change version number to 1.0.2.beta4
  1203. (from Douglas Atique bugs report and patch)
  1204. - etc/Makefile.am
  1205. . add the files makeFMStyle, makeSTDStyle and moveFMCode to the
  1206. distribution archive
  1207. - src/Makefile.am
  1208. . add the files sys_solaris.c, sys_hpux.c and powermgt_macosx.c to the
  1209. distribution archive
  1210. - src/pcscdaemon.c
  1211. . ignore SIGHUP signal
  1212. . remove pid file if USE_RUN_PID is defined
  1213. - src/winscard_msg.c
  1214. . move #ifdef PCSC_TARGET_SOLARIS _after_ the inclusion of config.h since
  1215. PCSC_TARGET_SOLARIS is defined in config.h
  1216. pcsc-lite-1.0.2beta3: (Ludovic Rousseau <ludovic.rousseau@free.fr>)
  1217. 10 Jan, 2002
  1218. (from Carlos Prados Debian package)
  1219. - configure.in
  1220. . add AC_PREFIX_DEFAULT(/usr/local/pcsc) to install in /usr/local/pcsc by
  1221. default
  1222. - etc/
  1223. . add makeFMStyle, makeSTDStyle and moveFMCode scripts
  1224. - src/utils/Makefile.am
  1225. . add EXTRA_DIST = sample.in sample.ibm sample.out
  1226. - src/dyn_bsd.c
  1227. . try without a leading '_' in cas of failure (needed by FreeBSD) thanks to
  1228. Toni Andjelkovic <toni@soth.at> for the patch)
  1229. - src/test.c
  1230. . commented declarations on unused variables
  1231. . corrected three %x to %lx for long arguments
  1232. - README
  1233. . add documentation for --enable-confdir and --enable-runpid
  1234. - src/README_INTERNALS.txt: new file containing some documentation for source
  1235. code hackers
  1236. - src/Makefile.am: add EXTRA_DIST = README_INTERNALS.txt
  1237. - src/pcscdaemon.c: the daemon now cleany stops the drivers before exiting
  1238. . the global variable AraKiri is set in signal_trap()
  1239. . this variable is checked in the main loop of SVCServiceRunLoop()
  1240. . RFCleanupReaders() is then called if AraKiri
  1241. - src/readerfactory.c: add RFCleanupReaders() to do the cleaning job at exit
  1242. - src/test.c: change %x to %02X for the ATR bytes
  1243. - src/debuglog.c and src/debuglog.h:
  1244. . rewrote the DebugLog[ABCD] function
  1245. . the function are now defines than include __FILE__ and __LINE__
  1246. . the test #ifdef USE_SYSLOG if moved from the source code to the
  1247. src/debuglog.c function only -> the source is more readable
  1248. . the new log functions are now used everywhere
  1249. - src/configfile.l:
  1250. . changed syslog() to DebugLog()
  1251. . add #include "debuglog.h"
  1252. - README: add a supported platform: OpenBSD 3.0 (with libc.so.28.2)
  1253. - Makefile.am: add HELP file to EXTRA_DIST
  1254. pcsc-lite-1.0.2beta2: (Ludovic Rousseau <ludovic.rousseau@free.fr>)
  1255. 20 Dec, 2001
  1256. - bootstrap: added --verbose
  1257. - reconf: added --verbose and --enable-debug
  1258. - configure.in:
  1259. . changed release number to 1.0.2.beta2
  1260. . added -Wall to CFLAGS to compile with all the warnings ON. This change
  1261. implied many small corrections: mainly addition of include file to add
  1262. functions prototyping, adding return values when needed, removing unused
  1263. variables.
  1264. . add doc/ directory (from Carlos Prados Debian package)
  1265. . add --enable-confdir=DIR (default to /etc)
  1266. inspiration from Shell Hin-Lik Hung, OpenBSD pcsc-lite port
  1267. . add --enable-runpid=FILE to store the pcscd pid
  1268. inspiration from Carlos Prados, Debian package maintainer
  1269. - many C source files includes <pcsclite.h> (or similar). I changed to
  1270. "pcsclite.h" since the local .h should be more recent and with less
  1271. bugs than the one in /usr/local/include/
  1272. - src/dyn_bsd.c, src/dyn_unix.c: in DYN_LoadLibrary() changed 0 to
  1273. NULL, "char *" to "const char *"
  1274. - src/dyn_hpux.c: removed declared but unused variables
  1275. - src/ifdwrapper.c: initialize IFD_? functions pointer to NULL
  1276. - src/pcscdaemon.c:
  1277. . removed declaration of errno (already made in errno.h)
  1278. . exit with code value
  1279. . more explicit error message when /tmp/pcsc/ already exist
  1280. . test if VERSION and PCSCLITE_VERSION_NUMBER are the same
  1281. release numbers
  1282. . create a file containing the PID (see configure --enable-runpid=FILE)
  1283. ("stolen" from Carlos Prados Debian package)
  1284. - src/readerfactory.c
  1285. . removed unused variables
  1286. . dwSlot is a long, use %ld instead of %d
  1287. . changed "SCARD_F_UNKNOWN_ERROR;" to "return SCARD_F_UNKNOWN_ERROR;"
  1288. - src/readerfactory.h: corrected "RVAllocateReaderSpace" to
  1289. "RFAllocateReaderSpace" (RVA -> RFA)
  1290. - sys_*.c: removed declaration of errno
  1291. - src/sys_unix.c: add "return 0;" in SYS_Initialize()
  1292. - winscard.c: in SCardReconnect()
  1293. . initialize dwAction to 0
  1294. . remove unused variables dwReaderLen and dwProtocol
  1295. - src/winscard_clnt.c: commented out declaration and definition of
  1296. SCardSetupThreadSafety(). It is not used anywhere.
  1297. - src/winscard_msg.c:
  1298. . add the error message "strerror(errno)" returned by the socket
  1299. functions in the debug message logged
  1300. . removed unused variables
  1301. . removed (fd_set *) cast in select calls. (compiles OK without)
  1302. - src/winscard_svc.c: add a "return 0;" in MSGCleanupClient()
  1303. - src/winscard_svc.h: add prototype for MSGCleanupClient()
  1304. - doc/Makefile.am: ("stolen" from Carlos Prados Debian package)
  1305. . add this directory in dist files
  1306. - Makefile.am: ("stolen" from Carlos Prados Debian package)
  1307. . add doc directory
  1308. . add reconf bootstrap in dist files
  1309. - src/Makefile.am: ("stolen" from Carlos Prados Debian package)
  1310. . add utils directory
  1311. . remove libpcsclite-core.la from install target
  1312. . add dyn_bsd.c dyn_hpux.c to EXTRA_libpcsclite_core_la_SOURCES
  1313. - src/utils/Makefile.am: ("stolen" from Carlos Prados Debian package)
  1314. . converted LIBS line into formaticc_LDADD line
  1315. - src/hotplug_linux.c
  1316. . add some includes files
  1317. . commented useless declarations of hpManu_id, hpProd_id, bundleArraySize
  1318. - src/utils/installifd.c
  1319. . rv, dwRecvLength and dwSendLength are long, use %ld instead of %d
  1320. . commented useless declarations of many variables
  1321. . add some (int *) casts
  1322. - etc/ ("stolen" from Carlos Prados Debian package)
  1323. . added SmartcardServices
  1324. . added StartupParameters.plist
  1325. - src/debuglog.c:
  1326. . put the ATR on just one line even with syslog
  1327. . changed LOG_DEBUG to LOG_INFO since the LOG_DEBUG level messages are
  1328. seldom logged
  1329. - src/pcsclite.h: test if USE_READER_CONF is defined (see
  1330. --enable-confdir=DIR)
  1331. pcsc-lite-1.0.2beta: (Ludovic Rousseau)
  1332. 29 Nov, 2001
  1333. - stop if /tmp/pcsc already exists
  1334. - clean and remove /tmp/pcsc on exit using signal() and atexit()
  1335. - renamed SYS_Exit to exit in many places to use the atexit() defined
  1336. cleaning function
  1337. - removed \n in debug messages (syslog does not need it)
  1338. - some minor print cosmetic modification in atrhandler.c
  1339. - use a define DEBUG_BUFFER_LENGTH instead of 150 in debuglog.c
  1340. - use snprintf() instead of sprintf() in debuglog.c
  1341. - add a error on compile in pcscdaemon.c
  1342. You must use '--enable-syslog' when also using '--enable-daemon' or
  1343. you will not get any message
  1344. - renamed SYS_Stat to SYS_Fstat since the system call is fstat and stat
  1345. is another one
  1346. - use PCSCLITE_IPC_DIR instead of repeating "/tmp/pcsc/" in pcsclite.h
  1347. pcsc-lite-1.0.1:
  1348. added -fno-common to CCFLAGS
  1349. fixed syslog error on ATR
  1350. lengthened the default client timeout on commands
  1351. fixed bus error when vendir/id not found
  1352. Added support for HP-UX 11 and OpenBSD 2.9
  1353. Removed callback socket from server
  1354. Fixed GetStatusChange bug on small timeouts
  1355. Fix bug in transmit where reader sends back
  1356. wrong length causes client to overwrite buffer
  1357. pcsc-lite-1.0.0b:
  1358. Fixed numerous NULL pointer errors
  1359. Fixed many, many behaviors
  1360. Tried Windows compatibility testing
  1361. Switched to sockets based implementation
  1362. Basically, it's had 2 months testing
  1363. pcsc-lite-0.9.3:
  1364. Changed test.c
  1365. Added buffered read/write layer
  1366. Shortened timeouts on outgoing commands
  1367. Added support for Solaris 2.6 2.8
  1368. Fixed autoconf problems
  1369. Added an option for client side thread safety
  1370. Fixed '-' problem for bundleparser
  1371. pcsc-lite-0.9.1:
  1372. Switched to named pipes for transport
  1373. Fixed SCARD_POWERED tag when card inserted upside down
  1374. Added non-polling request blocking
  1375. Switched to autoconf thanks to some help
  1376. Added timeouts for client/server
  1377. pcsc-lite-0.8.7:
  1378. Added kernel IoKit notifications for USB devices on OS X
  1379. Added polling support for USB devices on Linux
  1380. Added XML parsing for bundles on Linux
  1381. Fixed GetStatusChange's SCARD_READERSTATE structure problem
  1382. Fixed random generation in EstablishContext ( Carl-Magnus Pettersson )
  1383. Fixed RPC Channel leak in EstablishContext ( Carl-Magnus Pettersson )
  1384. Updated documentation to 0.8.7
  1385. pcsc-lite-0.8.6:
  1386. Added empty file powermgt_macosx.c for future power management
  1387. Added ability for multiple identical readers on OS X
  1388. Fixed bug enabling SCardTransmit to pass memory card functions
  1389. by allowing sSendPci to be NULL
  1390. Fixed some possible buffer overrun exploits
  1391. pcsc-lite-0.8.5:
  1392. Moved to 'fat client' architecture
  1393. Mapped status to clients so events are immediate
  1394. Removed fork() from server, and wait() calls
  1395. Added multi readers to GetStatusChange
  1396. Added block for reader in GetStatusChange
  1397. Added Reader Lun naming mechanism for friendlynames
  1398. Updated the documentation
  1399. pcsc-lite-0.8.2:
  1400. Added more error checking to all winscard functions.
  1401. Added the ability to use Domain Sockets on Linux, Solaris.
  1402. Increased the select sleep time to conserve cpu time.
  1403. Added the ability to recover from errors by reloading drivers/etc.
  1404. Pre-allocated bundle array list to save cpu time and memory leakage.
  1405. Added SECURITY file.
  1406. pcsc-lite-0.8.0:
  1407. Added Hot Pluggable search function to select loop.
  1408. Fixed Makefiles to do copies not moves
  1409. Changed some filenames.
  1410. pcsc-lite-0.7.8:
  1411. Fixed race condition between pcscusb and eventhandler.c
  1412. Fixed core dump on error startup.
  1413. Added T=1 detection to test.c.
  1414. Added SCardControl()
  1415. pcsc-lite-0.7.5:
  1416. Dynamically addable readers.
  1417. Multiple dynamically addable readers.
  1418. More startup error checking.
  1419. Full support for OS X
  1420. pcsc-lite-0.7.3:
  1421. Added stringified error responses.
  1422. Fixed some error returning bugs.
  1423. Support for dynamic readers such as USB readers.
  1424. More support for OS X
  1425. pcsc-lite-0.7.1:
  1426. Fixed bugs causing problems in Redhat regarding mutex pointers.
  1427. Fixed exiting problem causing random zombie processes.
  1428. Removed thread libs and dyn libs from local library.
  1429. Abstracted thread libs in thread_generic.h
  1430. Added support for Mac OS X.
  1431. pcsc-lite-0.7.0:
  1432. Support for ifd handler 2.0 specifications.
  1433. pcsc-lite-0.6.9:
  1434. Fixed bug in readerfactory.c that only allowed 2 applications
  1435. to run simultaneously.
  1436. Fixed bug in rpc/winscard.c so that some applications which
  1437. while looped on Begin/End could not cause starvation.
  1438. pcsc-lite-0.6.8
  1439. Fixed mutex bug in readerfactory.c
  1440. Added SCardListReaderGroups for compatibility
  1441. Fixed NULL in for ListReaders
  1442. Fixed NULL as pioRecvPci in Transmit
  1443. Added multi-sys Makefiles
  1444. Pulled Windows(r) defs from pcsclite.h
  1445. Added INFINITE to GetStatusChange.
  1446. pcsc-lite-0.6.6
  1447. Added application event notification on calls
  1448. Added SCardReconnect
  1449. pcsc-lite-0.6.5
  1450. Added -v option for version checking
  1451. Added security module for future encryption/decryption
  1452. Added function to allow only from localhost
  1453. Added default values to all variables
  1454. Proper freeing of all pointer values
  1455. Fixed Reset on Disconnect
  1456. Removed any dangerous pointer references
  1457. pcsc-lite-0.6.4
  1458. Shortened the thread zombie cleanup time.
  1459. pcsc-lite-0.6.3
  1460. Fixed readerfactory assignment of ID problem
  1461. pcsc-lite-0.6.2
  1462. Using pthreads for status poll.
  1463. Using pthread mutexes instead of test and set.
  1464. Fixed problem in GetStatusChange.
  1465. Fixed SCardBeginTransaction.
  1466. pcsc-lite-0.6.0
  1467. Removed SCardReadMemory, SCardWriteMemory
  1468. Added Mutex locks around all driver calls
  1469. Added ability to do startup allocation
  1470. Fixed memory leak in RFAddReader
  1471. Removed some warnings
  1472. pcsc-lite-0.5.5
  1473. Added multi-slot support
  1474. Fixed T=0/1 protocol definition
  1475. pcsc-lite-0.5.2
  1476. Fixed protocol negotiation
  1477. Modified defines to work with OCF
  1478. pcsc-lite-0.5.0
  1479. Fixed the Makefiles to include
  1480. symbolic links to external libraries
  1481. pcsc-lite-0.4.9
  1482. Added some objects to the client's
  1483. library so it can be used with ssp-lite
  1484. pcsc-lite-0.4.7
  1485. Added Server State Machine
  1486. Kills dead clients and frees resources
  1487. Added SCardSetTimeout
  1488. Fixed Makefile for non-rpc
  1489. Added BSD style Makefile for BSD compilation
  1490. Fixed SCardRead/Write functions
  1491. pcsc-lite-0.4.0
  1492. Fixed SCardStatus Function
  1493. Added IFD Wrapper Abstraction Layer
  1494. Began support for multiple slots
  1495. Fixed bug in SCardStatus with overflow
  1496. Added code to remove zombie processes
  1497. Added support for connecting to multiple
  1498. readers/resource managers from the client.
  1499. pcsc-lite-0.3.0:
  1500. Added RPC abstraction layer.
  1501. Added Server Forking on Transmit and GetStatusChange.
  1502. Fixed overflowed buffer in atrhandler.c
  1503. Fixed Disconnect Bug.
  1504. pcsc-lite-0.2.4:
  1505. Added ATR Handling.
  1506. Added support for T=1
  1507. Added support for PTS negotiation
  1508. Added abstraction for more slots/terminal
  1509. Added correct ATR size return
  1510. pcsc-lite-0.2.2:
  1511. Added some defines in pcsclite.h
  1512. Added support for Memory cards.
  1513. Added support for SCardCancel.
  1514. pcsc-lite-0.2.0:
  1515. Fixed powering up error in GetStatusChange.
  1516. Added some type defines in pcsclite.h
  1517. pcsc-lite-0.1.0:
  1518. Fixed bug in readerfactory.c line 117 lpcReaders[p] = 0
  1519. to lpcTReaders[p] = 0. This was giving strange errors.
  1520. Fixed return rv at SCardStatus function to return SCARD_S_SUCCESS.
  1521. Added 7 more defines to pcsclite.h
  1522. pcsc-lite-0.0.2:
  1523. Added functions Status, and GetStatusChange
  1524. Fixed Connect to look for card
  1525. Fixed return values for functions