head 1.7; access; symbols pkgsrc-2024Q1:1.6.0.18 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.16 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.14 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.12 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.10 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.8 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.6 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.4 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.2 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.5.0.14 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.12 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.10 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.8 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.6 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.4 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.2 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.4.0.24 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.46 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.42 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.40 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.38 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.36 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.34 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.32 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.30 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.28 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.26 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.22 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.20 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.18 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.16 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.14 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.12 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.10 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.8 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.6 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.4 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.2 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.3.0.14 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.12 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.10 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.8 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.6 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.4 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.2 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.2.0.2 pkgsrc-2012Q4-base:1.2; locks; strict; comment @# @; 1.7 date 2024.05.08.18.47.37; author adam; state dead; branches; next 1.6; commitid er9yWzMtX9dH9e9F; 1.6 date 2022.01.10.16.11.52; author adam; state Exp; branches; next 1.5; commitid 4L5YdJKJjgrcA6oD; 1.5 date 2020.06.20.19.03.37; author adam; state Exp; branches; next 1.4; commitid 335msqGngHeIOZcC; 1.4 date 2014.10.01.16.27.03; author gdt; state Exp; branches; next 1.3; commitid w8KL6IgDzLhF6wSx; 1.3 date 2013.01.06.16.02.21; author pettai; state Exp; branches; next 1.2; 1.2 date 2012.12.14.23.50.36; author pettai; state Exp; branches; next 1.1; 1.1 date 2012.10.24.09.01.40; author manu; state Exp; branches; next ; desc @@ 1.7 log @pcsc-lite: updated to 2.2.1 2.2.1: Ludovic Rousseau - fix meson related issues - Some code cleanup 2.2.0: Ludovic Rousseau - provide files for meson build tool (replaces autoconf/auoomake) - fix a missing symbol in libpcscspy (bug introduced by the previous version) - fix shutdown issues with hotplug_libusb - update pcsc-spy manpage - update copyright date - Some other minor improvements @ text @$NetBSD: patch-configure,v 1.6 2022/01/10 16:11:52 adam Exp $ Make sure libpcsclite.so is not linked against -lphtread on NetBSD, as loading libpthread.so through dlopen() is now forbidden --- configure.orig 2021-12-04 12:29:53.000000000 +0000 +++ configure @@@@ -711,6 +711,8 @@@@ PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CXX PTHREAD_CC +LIBPCSC_PTHREAD_CFLAGS +LIBPCSC_PTHREAD_LIBS ax_pthread_config EGREP GREP @ 1.6 log @pcsc-lite: updated to 1.9.5 1.9.5: Ludovic Rousseau 4 December 2021 - pcscd: autoexit even if no client connects - Fix variable substitution in systemd units - fix potential race conditions with powerState handling - Add and use tag TAG_IFD_DEVICE_REMOVED - UnitaryTests: port code to Python 3 1.9.4: Ludovic Rousseau 1 October 2021 - fix a memory leak when libusb is used for hotplug (i.e. non-Linux systems) 1.9.3: Ludovic Rousseau 6 August 2021 - fix a stupid regression with systemd introduced in the previous version 1.9.2: Ludovic Rousseau 3 August 2021 - improve NetBSD support - pcsc-spy: version 1.1 . add option -t|--thread . x10 speed increase . correctly exit at end-of-file . remove, now useless, support of macOS - systemd: . use /etc/default/pcscd as EnvironmentFile . use $PCSCD_ARGS to specify more arguments - SetProtocol: Handle IFD_NOT_SUPPORTED from the driver - hotplug_libudev.c: sanitize interface name - pcsc_demo: change licence from GPLv3 to BSD - use Python 3 for Python scripts (psc-spy, UnitaryTests) - Some other minor improvements @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.5 2020/06/20 19:03:37 adam Exp $ @ 1.5 log @pcsc-lite: updated to 1.9.0: 1.9.0: - SCardEndTransaction(): greatly improve performances (x300) - tokenparser: accept any Unicode character in a reader name - Use /run instead of /var/run by default - Fix a memory leak from a polkit call - Some other minor improvements 1.8.26: - Use poll() instead of select() to allow file descriptor higher than FD_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() returns SCARD_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 1.8.25: - Fix a socket issue when pcscd is used inside LXC container - pcsc-spy: always provide a total time of execution - Fix resource leak if SCardEstablishContext() fails - Fix realloc(3) error handling (possible memory leak) - Remove usage of function chmod(2) to use fchmod(2) (fix race condition) 1.8.24: - the project moved to https://pcsclite.apdu.fr/ - SCardGetStatusChange(): Fix a rare race condition - SCardReleaseContext(): do not release a lock owned by another context - SCardReconnect(): suspend card auto power off - Allow "=" in serial driver filenames - Add the thread id in the pcscd log lines - pcsc-spy: correctly handle incomplete log file - Simclist: avoid to divide by zero in list_findpos() - Some other minor improvements @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.4 2014/10/01 16:27:03 gdt Exp $ d6 1 a6 1 --- configure.orig 2014-09-24 13:04:46.000000000 +0000 d8 1 a8 2 @@@@ -680,6 +680,8 @@@@ LIBTOOL PTHREAD_CFLAGS d10 1 d15 2 a16 20 ac_ct_AR AR @@@@ -13732,7 +13734,7 @@@@ fi # disable libudev check is USB is not used -if test "$use_usb" == "no"; then +if test "$use_usb" = "no"; then use_libudev="no" fi @@@@ -13889,7 +13891,7 @@@@ fi # disable libusb check is USB is not used -if test "$use_usb" == "no"; then +if test "$use_usb" = "no"; then use_libusb="no" fi @ 1.4 log @pcsc-lite-1.8.12: Ludovic Rousseau 24 September 2014 - make hotplug using libudev (default) more robust - add ReiserFS file system support (for configuration files) - add musl libC support (increase the thread stack) - Some other minor improvements and bug corrections @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.3 2013/01/06 16:02:21 pettai Exp $ d3 1 a3 1 Make sure libpscslite.so is not linked against -lphtread on NetBSD, as @ 1.3 log @pcsc-lite-1.8.7: - Fix a problem when a reader is unplugged (and the reader is still in use) pcsc-lite-1.8.6: - Fix a problem when only serial drivers are used (no hotplug/USB driver) - increase log buffer size from 160 to 2048. Some "long" log lines where truncated. - Fix redirection of stdin, stdout and stderr to /dev/null when pcscd is started as a daemon (default) - Some other minor improvements and bug corrections pcsc-lite-1.8.5: - Fix crash when a reader is unplugged while pcscd is in the middle of a PC/SC function - SCardBeginTransaction(): fix a bug introduced in version 1.8.4 related to sharing - Some other minor improvements and bug corrections pcsc-lite-1.8.4: - Add [ and ] in the list of accepted characters for a reader name - truncates the reader name if it is too long instead of rejecting the reader - The restriction to have to call SCardEstablishContext() in each thread has been removed. Threads could now share a PC/SC context. - Fix compiler failure for static driver - Update IFDHandler API Doxygen regarding the "libusb-1.0" naming scheme - Some other minor improvements and bug corrections pcsc-lite-1.8.3: - ignore directories and hidden (.*) files when parsing a configuration directory (like /etc/reader.conf.d/) - add Mac OS X for PC/SC spy tool - fix a bug in PC/SC spy tool when loading of the real library fails - add PCSCv2_PART10_PROPERTY_dwMaxAPDUDataSize, PCSCv2_PART10_PROPERTY_wIdVendor and PCSCv2_PART10_PROPERTY_wIdProduct from PC/SC v2 part 10 release 2.02.09 (not yet published) - Some other minor improvements and bug corrections pcsc-lite-1.8.2: - rename pcsc-spy.py to pcsc-spy and install it as a normal binary (in /usr/local/bin by default) - write a pcsc-spy.1 manpage - fix a bug with a multi-slot reader - Info.plist parser: avoid a buffer read overflow in & management - Some Doxygen improvements pcsc-lite-1.8.1: - Distribute missing files from src/spy/ pcsc-lite-1.8.0: - PC/SC spy tool - Support systemd socket activation (the auto start of pcscd from the library has been removed. Use systemd instead) - SCardGetStatusChange(): check all the readers are already known and return SCARD_E_UNKNOWN_READER if a reader name is not present. Windows XP has this behavior. - SCardEstablishContext(): Invalidate all the handles in the son after a fork - Add define of FEATURE_EXECUTE_PACE from PCSC v2 Part 10 Amendment 1 2011-06-03 - Fix some memory leaks reported by Coverity - Enable silent build by default - log_line(): correctly calculate delta time when no color is used The update of last_time was only done in case of colorization (LogDoColor). So on unsupported consoles the time was wrong. - log_xxd_always(): Use a variable-length array The debug message buffer is no more with a fixed size (around 600 bytes of buffer to log) but uses a variable-length array. It is now possible to log extended APDU of 64kB. The variable-length array feature is available in GCC in C90 mode and is mandatory in C99 standard. - Some other minor improvements and bug corrections @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.2 2012/12/14 23:50:36 pettai Exp $ d6 1 a6 1 --- configure.orig 2012-11-28 17:44:05.000000000 +0000 d8 1 a8 1 @@@@ -675,6 +675,8 @@@@ LIBTOOL d17 1 a17 1 @@@@ -13654,7 +13656,7 @@@@ fi d26 1 a26 1 @@@@ -13811,7 +13813,7 @@@@ fi @ 1.2 log @A major version bump gives a long changelog... 1.7.4: - Fix a stupid bug from the previous version. T=1 cards were not working. 1.7.3: - COPYING: Add my name as copyright holder - hotplug libudev: support libudev >= 171 - hotplug libusb: Fix a memory leak - pcscd: exit immediately in case of SIGTERM Closes Debian bug #620305 "pcscd slows down shutdown/restart" - Send logs to stdout instead of stderr It is now possible to use tee(1) to redirect logs in a file without first redirecting stderr to stdout - Add command line option -T, --color: force use of colored logs The idea is to have colored logs even if they are redirected to a file or a pipe. - Define g_rgSCardT?Pci as const structures to be more Windows like I do not expect a regression or compilation problem in WinSCard API users but how knows... - log at level PCSC_LOG_DEBUG instead of PCSC_LOG_ERROR to avoid filling the system log file - Remove the deprecated define FEATURE_MCT_READERDIRECT (replaced by FEATURE_MCT_READER_DIRECT) - better Hurd support - some other minor improvements and bug corrections 1.7.2: - fix a crash if a specific driver fails to work and no class driver is available 1.7.1 - use libudev only on Linux and libusb elsewhere. The configuration now works by default on GNU/kFreeBSD systems - Try to use a (CCID) class driver if a specific driver fails to use the reader. - fix a potential crash 1.7.0: - use libudev instead of (the deprecated) libhal 1.6.7: - better Mac OS X support - Fix Alioth bug [#312960] SCardDisconnect when other context has transaction - add support of multi-interfaces readers with libusb and not just libhal - add a API tracing feature in the client side (#define DO_TRACE) - allow the use of tracing and profiling features from different application threads - fix a problem with a multi-slots reader - fix minor problems detected by the clang tool - some other minor improvements and bug corrections 1.6.6: - SCardGetStatusChange(): fix a bug on 64-bits systems - Fix another bug because of a regression in internal list manager 1.6.5: - Power on the card _only_ if an application requests a connection. You can disable the feature using DISABLE_ON_DEMAND_POWER_ON in src/pcscd.h.in If DISABLE_AUTO_POWER_ON is defined then do not automatically power on the card. The card will be powered on on the first SCardConnect() See http://ludovicrousseau.blogspot.com/2010/10/card-auto-power-on-and-off.html - SCardReconnect(): return SCARD_E_NO_SMARTCARD when card is removed and SCARD_W_UNRESPONSIVE_CARD when card is unresponsive instead of SCARD_E_PROTO_MISMATCH - Install pcscd as sgid pcscd instead of suid root See http://ludovicrousseau.blogspot.com/2010/09/pcscd-auto-start.html - SCardSetTimeout() is no more provided. This function is not provided by Microsoft and is deprecated since 2004 in pcsc-lite. - SCardCancelTransaction() is no more provided. This function is not provided by Microsoft and is deprecated since 2005 in pcsc-lite. - Parsing the CCID Info.plist (159 readers supported) was, on a i386 machine, done in 264306 #s and is now done 5547 #s => gain x47 or 4600% See http://ludovicrousseau.blogspot.com/2010/08/ram-and-cpu-improvements-in-pcsc-lite.html - It is now possible to configure the local socket name to use using the environment variable PCSCLITE_CSOCK_NAME See http://ludovicrousseau.blogspot.com/2010/11/pcsc-client-and-server-on-two-different.html - Wait until all connected readers have a chance to power up a possibly inserted card before accepting clients. - restrict pcscd features when not run by root (so using suid): APDU logging or setting parameters are disabled for example - fix compilation problem on kfreebsd-* systems - PCSC/reader.h: HOST_TO_CCID_16() and HOST_TO_CCID_32() are now identity functions Since libccid 1.4.1 (revision 5252) the byte order is no more important - If you want to use IFDHCreateChannel() instead of IFDHCreateChannelByName() then do not use any DEVICENAME line in the configuration file. IFDHCreateChannel() will then be called with the CHANNELID parameter. - the CHANNELID parameter can also be a decimal number. - Remove the support of IFDHandler v1 API. I don't know any driver using this API. See http://ludovicrousseau.blogspot.com/2010/10/ifdhandler-version-1-support-removed.html - avoids a buffer overflow with badly formed ATR - some other minor improvements and bug corrections 1.6.4: - Do not use sysconfdir as configuration directory but "${sysconfdir}/reader.conf.d" instead. Use --enable-confdir=DIR if you want to set a specific value without the "reader.conf.d" appended. 1.6.3: - "/reader.conf.d" is only appended to sysconfdir if no value of sysconfdir is provided - Define LPSCARD_READERSTATE since this is used in the MSDN prototype. Use LPSCARD_READERSTATE in winscard.h instead of (SCARD_READERSTATE *) to mimic the MSDN API. - fix a pcscd crash when the application uses a PCSC handle after a fork. The crash was with openvpn. - some other minor improvements and bug corrections 1.6.2: - implement a "Forced suicide" mechanism. After 3 Ctrl-C without much reaction from pcscd (in fact the drivers) we force the suicide. Sometimes libusb is blocked in a kind of dead-lock and kill -9 was the only option. - Add support of TAG_IFD_STOP_POLLING_THREAD to request the stop of the driver polling function. - Avoid a division by 0. Closes [#312555] "simclist bug in pcsc-lite" - if pcscd is stared by libpcsclite then close all file handles except stdin, stdout and stderr so that pcscd does not confiscate ressources allocated by the application - in case of auto exit create a new session so that Ctrl-C on the application will not also quit pcscd - src/hotplug_libusb.c: port from libusb-0.1 to libusb-1.0 - default configuration is now $sysconfdir/reader.conf.d - fix crash with empty config dir - src/PCSC/winscard.h: Remove definitions of SCARD_READERSTATE_A PSCARD_READERSTATE_A and LPSCARD_READERSTATE_A types - some other minor improvements and bug corrections 1.6.1: - SCardControl(): do not check for card events since we are talking to the reader not the card. A smart card removal should not make SCardControl() fail with SCARD_W_REMOVED_CARD - pcscd do not timeout any more after 2 minutes of inactivity. If the other side of the socket dies we will get an error from the kernel. The problem was that if a client does nothing during PCSCLITE_READ_TIMEOUT (120 seconds by default) then pcscd considers it as a dead client and closes the connection. I guess this problem was present since the first version of pcsc-lite but nobody complained before. - pcscd: do not return before most of the initialisation are done correctly. The idea is that pcscd can return an error code if the daemon fails to start correctly (hald not started for example). Before the patch pcscd became a daemon, then returned 0 (success) and then continued with the initialisation. If the initialisation failed it was too late to return an error code. The /etc/init.d/pcscd script was not aware of the failure. Closes https://bugzilla.redhat.com/show_bug.cgi?id=580321 "/usr/sbin/pcscd exit codes broken" - src/hotplug_libusb.c: Add a synchronisation so that if pcscd is auto started the initial reader list is available before the server takes commands from clients. Before the change early calls of SCardListReaders() returned an empty list of readers even if a reader was connected. - SCardConnect() & SCardReconnect(): do not reset the cardProtocol in SCARD_SHARE_DIRECT case since the card have _not_ been reseted. A new PPS negociation would fail. - Do not install files in /etc any more. Serial drivers are rare now. - Avoids a crash if a client sends a unknown command. - some other minor improvements and bug corrections 1.6.0: - redesign the client/server communication: * no more shared memory used (allow pcscd and libpcsclite1.so to be on different computer and talk over a network) * no more difference between short and extended APDU * no more use of a /var/run/pcscd/pcscd.events/ directory. events are sent through the socket * simpler command format between client and server The side effect is that you are not able to mix an old pcscd with a new libpcsclite1.so or the reverse. SCardEstablishContext() will fail unless you update both sides of the communication. - Use lists instead of fixed size arrays to store handles. It is now possible to have: - 200 simultaneous PC/SC clients instead of 16 - 200 SCardConnect per client instead of 16 - 200 clients per reader instead of 16 The default value of 200 can be changed by giving an argument to pcscd --max-thread --max-card-handle-per-thread --max-card-handle-per-reader - Make SCardReconnect(), SCardStatus() and SCardTransmit() block instead of returning SCARD_E_SHARING_VIOLATION immediately. These functions will then behave like on Windows. This can happen if these functions are called when the reader is locked by a PCSC transaction (SCardBeginTransaction/SCardEndTransaction). You can define the environment variable PCSCLITE_NO_BLOCKING to use the old behavior. http://archives.neohapsis.com/archives/dev/muscle/2010-q1/0041.html - SCardEstablishContext(): try to start the pcscd daemon if not already running. . pcscd will suicide itself after 60 seconds of inactivity if it is started using --auto-exit. This is the default behavior when pcscd is started by libpcsclite . Set PCSCLITE_PCSCD_ARGS with the argument you want to pass to pcscd in autostart Only one argument is passed. The space character is not a separator. example: export PCSCLITE_PCSCD_ARGS=-dfa - SCardListReaders(): can use SCARD_AUTOALLOCATE - SCardGetAttrib(): return SCARD_E_INSUFFICIENT_BUFFER if the driver returns IFD_ERROR_INSUFFICIENT_BUFFER . add support of SCARD_ATTR_DEVICE_FRIENDLY_NAME as it is better implemented in pcscd (it knows the friendly name) - SCardGetStatusChange(): Calling with cReaders == 0 will now just return SCARD_S_SUCCESS . Use the special reader name "\\?PnP?\Notification" to wait for a reader event notification - SCardTransmit(): do not limit the minimum size of an APDU to 4 bytes. non ISO 7816-4 compliant cards (like Mifare DESFIRE) may use shorter commands - SCardStatus(): returns SCARD_E_SHARING_VIOLATION if the reader is already used More conform to Windows - PCSC/reader.h: update sruct PIN_PROPERTIES_STRUCTURE to be conform with Revision 2.02.06, April 2009 of PCSCv2 part 10 Fields wLcdMaxCharacters and wLcdMaxLines have been removed . rename FEATURE_MCT_READERDIRECT in FEATURE_MCT_READER_DIRECT to be conform with ch. 2.3 of PCSC v2 part 10 . add FEATURE_GET_TLV_PROPERTIES and FEATURE_CCID_ESC_COMMAND from PC/SC part 10 v2.02.07 March 2010 . Add PCSCv2_PART10_PROPERTY_* defines - SCardControl() return SCARD_E_UNSUPPORTED_FEATURE if the driver returned IFD_ERROR_NOT_SUPPORTED or IFD_NOT_SUPPORTED This is used to separate an unsupported value of ControlCode from a general error - Use the standard --sysconfdir=DIR ($prefix/etc by default) instead of --enable-confdir=DIR for defining the directory containing reader.conf - remove SCF support (PC/SC over Smart Card Framework). I never used this feature and SCF is now dead and replaced by JSR 268 (javax.smartcardio) - Better handling of PCSCLITE_STATIC_DRIVER as can be used on platforms using #Clinux (without dynamic loader). This is used to statically link the reader driver to pcscd. Since the link is static you must define the IFDHandler API version at compilation time. Either define IFDHANDLERv1, IFDHANDLERv2 or IFDHANDLERv3 - Use dynamic instead of static allocation for the driver library filename. The filename is no more limited to 100 characters. Closes: [#312332] MAX_LIBNAME too short? - force the return codes SCARD_* to be long since the SCard* functions return a LONG type - Add the ability to parse all the configuration files of a directory instead of just one configuration file. update-reader.conf is then now obsolete. - Add --enable-embedded (default is no) to build pcsc-lite for an embedded system. This will activate the NO_LOG option to disable logging and limit RAM and disk consumption. - If NO_LOG is defined then no log are displayed. The idea is to limit the binaries size on disk and RAM consumption at execution time. With NO_LOG defined we gain 26% (17 kB) for the .text segment of pcscd and 15% (4 kB) for the .text segment of libpcsclite.so (for i386) - Define a minimal pcsc_stringify_error() if NO_LOG is defined. Only the error code in hex is displayed in this case. Gain: 2kB of .text (10%) for libpcsclite - Add --disable-serial and --disable-usb options --disable-serial removes support of /etc/reader.conf gain: 8.0kB of .text (12%) and 160 bytes of .bss (4%) for pcscd --disable-usb removes support of USB hotplug gain: 9.7kB of .text (14%) and 960 bytes of .bss (23%) for pcscd If you use both options (and use a static driver configuration) gain: 17.7kB of .text (26%) and 1152 bytes of .bss (28%) for pcscd - Better support of Android - some other minor improvements and bug corrections @ text @d1 1 a1 1 $NetBSD$ d6 1 a6 1 --- configure.orig 2012-12-11 21:43:14.000000000 +0000 d8 1 a8 1 @@@@ -654,6 +654,8 @@@@ LIBTOOL d14 4 a17 4 acx_pthread_config PKG_CONFIG_LIBDIR PKG_CONFIG_PATH @@@@ -13327,7 +13329,7 @@@@ fi d26 1 a26 1 @@@@ -13484,7 +13486,7 @@@@ fi @ 1.1 log @Restore opensc-pkcs11.so functionnality on NetBSD-6.0. libpthread shall not be loaded by dlopen(), therefore we remove the useless dependency on -lpthread @ text @d6 3 a8 5 --- ./configure.orig 2012-10-24 06:24:27.000000000 +0200 +++ ./configure 2012-10-24 06:39:49.000000000 +0200 @@@@ -823,8 +823,10 @@@@ LIBTOOL d15 3 a17 4 PKG_CONFIG LEXLIB LEX_OUTPUT_ROOT @@@@ -6135,8 +6137,18 @@@@ d20 5 a24 1 CC="$PTHREAD_CC" d26 1 a26 10 +case `uname` in +NetBSD) + LIBPCSC_PTHREAD_LIBS='' + LIBPCSC_PTHREAD_CFLAGS='' + ;; +*) + LIBPCSC_PTHREAD_LIBS=$PTHREAD_LIBS + LIBPCSC_PTHREAD_CFLAGS=$PTHREAD_CFLAGS + ;; +esac d29 5 a34 1 # Add libtool support @