Upstream changes:
- Fix SCardEndTransaction() issue with a SCARD_SHARE_EXCLUSIVE
connection
- Fix an issue when used with systemd (problem in signal handler)
- SCardGetAttrib(): set pcbAttrLen when buffer is too small
- Doxygen: SCardGetAttrib() pbAttr can be NULL
- Doxygen: SCardGetAttrib() *pcbAttrLen contains the buffer size
- fix compilation warnings and link errors on SunOS
- Some other minor improvements
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @viric, @wkennington
Some libraries using PCSC-Lite still tend to refer to /var/run/pcscd
instead of /run/pcscd, so let's make sure this won't happen.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @viric, @wkennington
This allows to override the directory where PCSC-Lite searches for USB
drivers at runtime and should make our NixOS module much more clean so
that we don't need to imperatively stitch together plugin directories
anymore.
I'm using a GNU extension for the ternary operator to avoid computing
getenv("PCSCLITE_HP_DROPDIR") twice:
https://gcc.gnu.org/onlinedocs/gcc/Conditionals.html#Conditionals
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @viric, @wkennington