New version of pcsc-lite: 1.8.26
I just released a new version of pcsc-lite 1.8.26.
pcsc-lite is a Free Software implementation of the PC/SC (or WinSCard) API for Unix systems.
Changes
1.8.26: Ludovic Rousseau3 January 2020
- Use
poll()
instead ofselect()
to allow file descriptor higher thanFD_SETSIZE
- Enable reader filtering by default
- pcsc-spy:
- Do not read output buffer after error
- Adjust code to handle autoallocated buffers
- fix year-2038 issue by using long instead of int
- Android: fix compilation
- if client/server protocol mismatch:
- log an explicit message
-
SCardEstablishContext()
returnsSCARD_E_SERVICE_STOPPED
- polkit: log the error message if polkit_authority_get_sync() fails
- Exit with
EXIT_SUCCESS
on shutdown to please systemd - Doxygen: fix minor issues in the documentation
- Add --disable-documentation option
- Fix a minor memory leak
Motivation
The major change is the use of reader filtering by default. No need to rebuild pcsc-lite using --enable-filter any more.The feature was introduced in 2015 and is documented at "Remove and/or customize PC/SC reader names".
This feature is requested in packages by some users.
- In Debian bug #947883 " Enable reader name filter in pcscd "
https://bugs.debian.org/947883 - In Arch Linux bug 51912 " [pcsclite] Enable 'filter' support "
https://bugs.archlinux.org/task/51912 - And also in Ubuntu bug 1857118 " Build pcscd with --enable-filter option "
https://bugs.launchpad.net/bugs/1857118
To avoid that each GNU/Linux distribution changes the packaging configuration to enable the feature I decided to enable the feature by default in the upstream project.
This change should not have any bad side effect. Only root can modify the configuration file /etc/default/pcscd or the systemd file /etc/systemd/system/pcscd.service.d/override.conf.
For systemd use:
sudo systemctl edit pcscd
to add something like:[Service] Environment=PCSCLITE_FILTER_IGNORE_READER_NAMES=Nitrokey
You can get the previous behaviour by using
./configure --disable-filter