Compare commits

...

317 Commits

Author SHA1 Message Date
Oliver Smith 96ffc87e05 release 1.9.9~sysmocom1 2024-03-12 17:21:10 +01:00
Oliver Smith 1d3da3323f d/control: set debhelper-compat = 12 2022-11-09 15:33:49 +01:00
Oliver Smith 99aadc04dd d/patches: add 256slots.patch 2022-11-09 14:49:51 +01:00
Ludovic Rousseau 9da5749aac release 1.9.9-1 2022-09-11 16:44:01 +02:00
Ludovic Rousseau e56510fdf2 d/copyright: update Copyright dates
P: pcsc-lite source: update-debian-copyright 2011 vs 2022 [debian/copyright:55]
N:
N:   The most recent copyright year mentioned for files in ./debian lags behind
N:   the year in the timestamp for the most recent changelog entry.
N:
N:   Visibility: pedantic
N:   Show-Always: no
N:   Check: debian/copyright/dep5
2022-09-11 16:42:40 +02:00
Ludovic Rousseau 4ac4074c40 d/copyright: fix match for simclist
W: pcsc-lite source: superfluous-file-pattern src/simclist.[ch] [debian/copyright:39]
N:
N:   The wildcard that was specified matches no file in the source tree. This
N:   either indicates that you should fix the wildcard so that it matches the
N:   intended file or that you can remove the wildcard. Notice that in contrast
N:   to shell globs, the "*" (star or asterisk) matches slashes and leading
N:   dots.
N:
N:   Please refer to
N:   https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ for
N:   details.
N:
N:   Visibility: warning
N:   Show-Always: no
N:   Check: debian/copyright/dep5
2022-09-11 16:27:45 +02:00
Ludovic Rousseau 72e0f1510d d/control: Standards-Version: 4.6.0 -> 4.6.1. No change needed. 2022-09-11 16:24:26 +02:00
Ludovic Rousseau e7a3ae593c new upstream release 2022-09-11 16:22:03 +02:00
Ludovic Rousseau 5e0975b4be Update upstream source from tag 'upstream/1.9.9'
Update to upstream version '1.9.9'
with Debian dir 790fb0eea1
2022-09-11 16:21:30 +02:00
Ludovic Rousseau 2cb5c621b8 New upstream version 1.9.9 2022-09-11 16:21:29 +02:00
Ludovic Rousseau 9759a1c84b d/pcscd.init: use "grep -E" instead of deprecated "egrep"
Closes: #1019322
2022-09-07 14:45:20 +02:00
Ludovic Rousseau df179a2256 release 1.9.8-1 2022-06-11 11:05:05 +02:00
Ludovic Rousseau 33dc6413bd include install_spy.sh & uninstall_spy.sh scripts 2022-06-11 10:58:16 +02:00
Ludovic Rousseau f41b145a7e new upstream release 2022-06-11 10:56:01 +02:00
Ludovic Rousseau fde6515dfc Update upstream source from tag 'upstream/1.9.8'
Update to upstream version '1.9.8'
with Debian dir 563cbf0f94
2022-06-11 10:55:31 +02:00
Ludovic Rousseau 3b7224cf1f release 1.9.7-1 2022-05-13 13:15:09 +02:00
Ludovic Rousseau 458d74b50f new upstream release 2022-05-13 13:13:48 +02:00
Ludovic Rousseau 7f320cb9c4 Update upstream source from tag 'upstream/1.9.7'
Update to upstream version '1.9.7'
with Debian dir c0b6cc0a4b
2022-05-13 13:13:26 +02:00
Ludovic Rousseau a7d99120c9 release 1.9.6-1 2022-05-11 17:39:03 +02:00
Ludovic Rousseau 7e1327ba30 new upstream release 2022-05-11 17:32:48 +02:00
Ludovic Rousseau 5953a46e21 Update upstream source from tag 'upstream/1.9.6'
Update to upstream version '1.9.6'
with Debian dir b1bd9ef72f
2022-05-11 17:31:17 +02:00
Ludovic Rousseau 0d15ff9ca7 release 1.9.5-3 2022-02-18 12:00:56 +01:00
Ludovic Rousseau 0fac498fbd d/control: Standards-Version: 4.5.1 -> 4.6.0. No change needed. 2022-02-18 11:58:24 +01:00
Ludovic Rousseau f63bd4adaf d/copyright: fix lintian warning: superfluous-file-pattern
strlcat is no more used since 2014.
2022-02-18 11:47:55 +01:00
Ludovic Rousseau 5b66e31dbe d/copyright: fix lintian warning: superfluous-file-pattern
We use the services of libsystemd-dev now.
2022-02-18 11:44:57 +01:00
Ludovic Rousseau 7a3188e4ec d/copyright: fix lintian warning: superfluous-file-pattern 2022-02-18 11:41:47 +01:00
Ludovic Rousseau 9394944eaf Create vesion 1.9.5-3 for a clean merge 2022-02-18 11:38:47 +01:00
Ludovic Rousseau 985660d0ec Merge branch 'master' of salsa.debian.org:debian/pcsc-lite 2022-02-18 11:35:23 +01:00
Ludovic Rousseau 19295a0cf7 release 1.9.5-2 2022-02-18 11:26:30 +01:00
Ludovic Rousseau 5861f868b5 Merge branch 'scrub-obsolete' into 'master'
Remove unnecessary constraints

See merge request debian/pcsc-lite!3
2022-02-17 11:00:11 +00:00
Debian Janitor 194f165c94 Remove constraints unnecessary since buster
* Build-Depends: Drop versioned constraint on dpkg-dev.
* pcscd: Drop versioned constraint on libccid and lsb-base in Depends.

Changes-By: deb-scrub-obsolete
2022-02-04 06:50:02 +00:00
Ludovic Rousseau 935e0eaeaa d/pcscd.postinst: removed as pcscd is already automatically restarted. 2021-12-22 15:11:06 +01:00
Ludovic Rousseau 7376c48fb2 Fix "debian/copyright contains links to Alioth" by updating URLs 2021-12-10 14:11:04 +01:00
Ludovic Rousseau 968e38a8c9 Release 1.9.5-1 2021-12-04 13:38:59 +01:00
Ludovic Rousseau fc7bb3049f new upstream release 2021-12-04 13:36:57 +01:00
Ludovic Rousseau f184f1d88e Update upstream source from tag 'upstream/1.9.5'
Update to upstream version '1.9.5'
with Debian dir 1b9c552052
2021-12-04 13:36:25 +01:00
Ludovic Rousseau 9bf51b9f1b Fix "socket /run/pcscd/pcscd.comm immediately removed upon start"
d/pcscd.postinst: restart pcscd on install (Closes: #995814)
2021-11-12 23:21:17 +01:00
Ludovic Rousseau 9445b600c3 Release 1.9.4-1 2021-10-01 18:51:40 +02:00
Ludovic Rousseau 555c719c18 d/rules: install systemd-service file in /usr/lib/systemd/system
E: pcscd: systemd-service-in-odd-location lib/systemd/system/pcscd.service
N:
N:   The package ships a systemd service file in a location outside
N:   /usr/lib/systemd/system/
N:
N:   Systemd in Debian looks for unit files in /usr/lib/systemd/system/.
N:   /lib/systemd/system/ and /etc/systemd/system, but the first location is
N:   now standard in Debian.
N:
N:   System administrators have the possibility to override service files (or
N:   in newer systemd versions, parts of them) by placing files in
N:   /etc/systemd/system. The canonical location for service files in Debian
N:   is /usr/lib/systemd/system/.
N:
N:   Please refer to Bug#992465, Bug#987989,
N:   https://salsa.debian.org/debian/debhelper/-/commit/d70caa69c64b124e3611c96
2021-10-01 18:42:18 +02:00
Ludovic Rousseau 364e5b68b4 reformat 2021-10-01 18:35:46 +02:00
Ludovic Rousseau c4860da1a8 new upstream release 2021-10-01 18:16:27 +02:00
Ludovic Rousseau 55800ed7a4 New upstream version 1.9.4 2021-10-01 18:15:40 +02:00
Ludovic Rousseau 78c7de96f2 d/upstream/metadata: add DEP12/UMEGAYA file 2021-08-27 13:49:48 +02:00
Ludovic Rousseau 13b6691f17 Release 1.9.3-2 2021-08-23 19:01:42 +02:00
Ludovic Rousseau bb3b9268e4 Fix "Please allow blacklisting a particular card reader" 2021-08-23 19:00:42 +02:00
Ludovic Rousseau 12e1042421 Fix "legacy conffiles leftover" remove the file on upgrade 2021-08-07 21:56:24 +02:00
Ludovic Rousseau 5aea439b3e Release 1.9.3-1 in experimental 2021-08-06 22:20:55 +02:00
Ludovic Rousseau 8fca77700d new upstream release 2021-08-06 22:17:46 +02:00
Ludovic Rousseau a1d1afc3ff Update upstream source from tag 'upstream/1.9.3'
Update to upstream version '1.9.3'
with Debian dir 46a7c65887
2021-08-06 22:17:19 +02:00
Ludovic Rousseau 7ad8002ecc Release 1.9.2-1 in experimental 2021-08-03 22:14:57 +02:00
Ludovic Rousseau ed93e44fb9 d/control: Standards-Version: 4.5.0 -> 4.5.1. No change needed. 2021-08-03 22:13:28 +02:00
Ludovic Rousseau bad4096612 d/control: Build-Depends: autoconf-archive 2021-08-03 22:11:03 +02:00
Ludovic Rousseau 360ae96e8f d/patches/01_python3: remove since applied upstream 2021-08-03 22:07:56 +02:00
Ludovic Rousseau f50b06ddd6 new upstream release 2021-08-03 22:06:14 +02:00
Ludovic Rousseau a64fb82810 Update upstream source from tag 'upstream/1.9.2'
Update to upstream version '1.9.2'
with Debian dir 8378746012
2021-08-03 22:04:46 +02:00
Ludovic Rousseau bbcaf6d27b release 1.9.1-1 2021-02-16 17:43:33 +01:00
Ludovic Rousseau 793940aac2 new upstream release 2021-02-16 17:38:25 +01:00
Ludovic Rousseau c6ab85d366 Update upstream source from tag 'upstream/1.9.1'
Update to upstream version '1.9.1'
with Debian dir 5375534638
2021-02-16 17:37:50 +01:00
Ludovic Rousseau e9c0844f04 Merge branch 'multiarch-hints' into 'master'
Apply hints suggested by the multi-arch hinter

See merge request debian/pcsc-lite!2
2020-09-13 16:34:56 +00:00
Debian Janitor bc2c6c66d7
Apply multi-arch hints.
+ libpcsclite-dev: Add Multi-Arch: same.

Changes-By: lintian-brush
2020-07-01 03:22:29 +00:00
Ludovic Rousseau b315e336cc release 1.9.0-1 2020-06-14 16:32:41 +02:00
Ludovic Rousseau 6ce747a6b1 d/not-installed: list files installed but not packaged 2020-06-14 16:30:42 +02:00
Ludovic Rousseau 2f2f353f0c pcscd: also install README.polkit 2020-06-14 16:25:36 +02:00
Ludovic Rousseau 088e5a557a d/control: Use uild-Depends: debhelper-compat (= 13)
pcsc-lite source: package-uses-old-debhelper-compat-version 12
2020-06-14 16:02:58 +02:00
Ludovic Rousseau bb21c8fb45 d/control: Standards-Version: 4.4.1 -> 4.5.0. No change needed. 2020-06-14 16:01:03 +02:00
Ludovic Rousseau 584b4079d6 New upstream release 2020-06-14 15:56:13 +02:00
Ludovic Rousseau 18cc05ef13 Update upstream source from tag 'upstream/1.9.0'
Update to upstream version '1.9.0'
with Debian dir ae9c468285
2020-06-14 15:55:10 +02:00
Ludovic Rousseau 1359bce505 release 1.8.26-3 2020-01-26 12:41:09 +01:00
Ludovic Rousseau 12690654bb Use an approach that is more Debian friendly for excluding pcscd on i386 2020-01-26 12:38:31 +01:00
Ludovic Rousseau 7a5ed371f7 Release 1.8.26-2 2020-01-08 22:25:26 +01:00
Ludovic Rousseau 8752a3d068 d/control: add Pre-Depends: ${misc:Pre-Depends} 2020-01-08 22:13:47 +01:00
Ludovic Rousseau e3add22f92 d/rules: use /run instead of (deprecated) /var/run 2020-01-08 22:09:08 +01:00
Ludovic Rousseau 1531d6cbd1 Merge branch 'use-run-instead-of-var-run' into 'master'
Use /run instead of /var/run

See merge request debian/pcsc-lite!1
2020-01-08 21:05:16 +00:00
Ludovic Rousseau c4891c3fab Fix "Enable reader name filter in pcscd" enabled by default upstream 2020-01-03 18:09:11 +01:00
Ludovic Rousseau 9a16b7274c Release 1.8.26-1 2020-01-03 18:01:34 +01:00
Ludovic Rousseau ba5db3f939 d/control: add Rules-Requires-Root: no 2020-01-03 18:00:14 +01:00
Ludovic Rousseau e44d5f1920 d/control: use debhelper-compat = 12 2020-01-03 17:55:14 +01:00
Ludovic Rousseau 62226f3819 d/control: Standards-Version: 4.3.0 -> 4.4.1. No change needed. 2020-01-03 17:53:34 +01:00
Ludovic Rousseau 507f9d93fa New upstream release 2020-01-03 17:37:34 +01:00
Ludovic Rousseau 6b8deef173 Update upstream source from tag 'upstream/1.8.26'
Update to upstream version '1.8.26'
with Debian dir 0b21bbe4c0
2020-01-03 17:35:49 +01:00
Ludovic Rousseau 31f4d81e75 Release 1.8.25-3 2019-11-30 18:15:41 +01:00
Ludovic Rousseau 4dac2c40d4 d/libpcsclite-dev.symbols: add Build-Depends-Package:libpcsclite-dev
Fix lintian warning symbols-file-missing-build-depends-package-field
2019-11-30 18:13:36 +01:00
Ludovic Rousseau 57c0ebbfbd d/libpcsclite1.symbols: add Build-Depends-Package:libpcsclite-dev
Fix lintian warning symbols-file-missing-build-depends-package-field
2019-11-30 18:09:34 +01:00
Ludovic Rousseau f95c63cd8c Fix "Python2 removal in sid/bullseye". Use python3 for pcsc-spy
(Closes: #945721)
2019-11-30 18:02:45 +01:00
Topi Miettinen 786c9499a8
Use /run instead of /var/run
This avoids the warning from systemd:
systemd[1]: /lib/systemd/system/pcscd.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/pcscd/pcscd.comm → /run/pcscd/pcscd.comm; please update the unit file accordingly.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2019-11-19 11:54:38 +02:00
Ludovic Rousseau 1a753d48a4 Release 1.8.25-2 2019-08-04 17:37:15 +02:00
Ludovic Rousseau 159995f8ac Closes: #924914 2019-03-25 21:27:15 +01:00
Ludovic Rousseau 7472a26aec release 1.8.25-1 2019-03-25 21:20:25 +01:00
Ludovic Rousseau a97e1656df d/control: Standards-Version: 4.2.1 -> 4.3.0. No change needed. 2019-03-25 21:18:59 +01:00
Ludovic Rousseau 36b140b9c8 d/upstream/signing-key.asc: use a minimal signing key 2019-03-25 21:14:03 +01:00
Ludovic Rousseau 6b5f6917dd new upstream version 2019-03-25 21:08:33 +01:00
Ludovic Rousseau cffacd0e09 Update upstream source from tag 'upstream/1.8.25'
Update to upstream version '1.8.25'
with Debian dir 809aa46759
2019-03-25 21:02:32 +01:00
Ludovic Rousseau f7e451f3bc release 1.8.24-1 2018-10-12 14:24:11 +02:00
Ludovic Rousseau 0d2ce26b86 d/control: Standards-Version: 3.9.8 -> 4.2.1. No change needed. 2018-10-12 14:15:49 +02:00
Ludovic Rousseau 46e3766b95 d/control: remove libpcsclite1-dbg since it is now autogenerated 2018-10-12 14:01:32 +02:00
Ludovic Rousseau 8994e4874d d/pcscd.docs: DRIVERS is no more provided by upstream 2018-10-12 11:49:15 +02:00
Ludovic Rousseau d7414ecf68 d/patchs/0001-Add-documentation-to-the-systemd-file.patch removed
the fix is now upstream
2018-10-12 11:22:42 +02:00
Ludovic Rousseau 5ff8c0fdde new upstream version 2018-10-12 11:17:59 +02:00
Ludovic Rousseau f8fb33eb20 Update upstream source from tag 'upstream/1.8.24'
Update to upstream version '1.8.24'
with Debian dir 7cb749f34e
2018-10-12 11:16:37 +02:00
Ludovic Rousseau cac9192842 d/watch: the project moved to https://pcsclite.apdu.fr/files/ 2018-10-12 11:16:23 +02:00
Ondřej Nový dd8acc8dfc d/changelog: Remove trailing whitespaces 2018-10-01 10:12:36 +02:00
Ludovic Rousseau ead3321018 Release 1.8.23-3 2018-05-08 22:21:46 +02:00
Ludovic Rousseau 698d722bae d/control: fix lintian warning:
binary-control-field-duplicates-source field "priority" in package
libpcsclite1-dbg

I: pcsc-lite source: binary-control-field-duplicates-source field
"priority" in package libpcsclite1-dbg
N:
N:    In debian/control, this field for a binary package duplicates the value
N:    inherited from the source package paragraph. This doesn't hurt anything,
N:    but you may want to take advantage of the inheritance and set the value
N:    in only one place. It prevents missing duplicate places that need to be
N:    fixed if the value ever changes.
N:
N:    Severity: wishlist, Certainty: certain
N:
N:    Check: control-file, Type: source
2018-05-08 22:18:32 +02:00
Ludovic Rousseau d0e1c80ccb Fix "missing multi-arch bits" by adding Multi-Arch: foreign" 2018-05-08 22:11:07 +02:00
Ludovic Rousseau 9a22435a99 Update debian/compat from 10 to 11 2018-03-24 23:46:38 +01:00
Ludovic Rousseau 10617332d1 d/control: remove Build-Depends: dh-systemd (>= 1.4)
W: pcsc-lite source: build-depends-on-obsolete-package build-depends:
dh-systemd (>= 1.4) => use debhelper (>= 9.20160709)
2018-03-24 23:40:23 +01:00
Ludovic Rousseau 306afd4aa7 d/control: change priority of libpcsclite1-dbg from extra to optional
W: libpcsclite1-dbg: priority-extra-is-replaced-by-priority-optional
2018-03-24 23:38:31 +01:00
Ludovic Rousseau 44e666f944 d/control: remove Build-Depends: dh-autoreconf
Fix lintian:
W: pcsc-lite source: useless-autoreconf-build-depends dh-autoreconf
2018-03-24 23:36:11 +01:00
Ludovic Rousseau 5f699fb6d1 d/control: Update Homepage 2018-03-24 23:31:39 +01:00
Ludovic Rousseau 6367118917 d/control: Set Vcs-* to salsa.debian.org 2018-03-24 23:30:35 +01:00
Ludovic Rousseau 9b925142e4 Release 2017-12-19 19:14:22 +01:00
Ludovic Rousseau 370f791afa Update debian/compat from 9 to 10 2017-12-19 19:14:22 +01:00
Ludovic Rousseau 2aac340984 Add documentation to the systemd file 2017-12-19 18:52:34 +01:00
Ludovic Rousseau 63b8078f99 Do not provide libpcscspy.so anymore
Provide only libpcscspy.so.0 instead

Fixes lintian warning:
W: libpcsclite-dev: non-dev-pkg-with-shlib-symlink usr/lib/x86_64-linux-gnu/libpcscspy.so.0.0.0 usr/lib/x86_64-linux-gnu/libpcscspy.so
2017-12-19 18:51:01 +01:00
Ludovic Rousseau 34c245671a Build-Depends: add libsystemd-dev
The new upstream version now uses libsystemd.
2017-12-19 18:51:01 +01:00
Ludovic Rousseau 6470027887 Add .symbols file for libpcscspy
Fix lintian warning:
I: libpcsclite-dev: no-symbols-control-file usr/lib/x86_64-linux-gnu/libpcscspy.so.0.0.0
2017-12-19 18:49:33 +01:00
Ludovic Rousseau 6aff7ab1ea Check upstream tarball signature
Fix lintian warning
P: pcsc-lite source: debian-watch-may-check-gpg-signature
2017-12-19 18:49:33 +01:00
Ludovic Rousseau 69d4743285 Migrate the Debian packging from SVN to GIT 2017-12-19 18:49:33 +01:00
Ludovic Rousseau 310a42b331 Merge tag 'upstream/1.8.23'
Upstream version 1.8.23
2017-12-19 18:42:48 +01:00
Ludovic Rousseau 6b8387fd91 Merge tag 'upstream/1.8.22'
Upstream version 1.8.22
2017-12-09 18:15:22 +01:00
Ludovic Rousseau dd6cf4449e Merge branch 'upstream' 2017-12-09 18:14:41 +01:00
Ludovic Rousseau 948b78e9c9 New upstream release 2017-06-17 08:19:20 +00:00
Ludovic Rousseau 845b4a00b4 New upstream release 2017-05-21 12:49:34 +00:00
Ludovic Rousseau c3f371e0cb New upstream release 2016-12-30 17:27:46 +00:00
Ludovic Rousseau 0fddd0c081 New upstream release 2016-12-09 09:16:36 +00:00
Ludovic Rousseau bc02259eb0 New upstream release 2016-08-10 18:57:05 +00:00
Ludovic Rousseau 4f33a1321d debian/control: Standards-Version: 3.9.7 -> 3.9.8. No change needed. 2016-05-29 15:36:29 +00:00
Ludovic Rousseau 5f973ad6ca New upstream release 2016-05-29 15:30:20 +00:00
Ludovic Rousseau 62620eb76d debian/rules: use "hardening=+all" to harden even more the binaries 2016-03-20 16:41:49 +00:00
Ludovic Rousseau 4744a13eea debian/control: Standards-Version: 3.9.6 -> 3.9.7. No change needed. 2016-03-20 16:34:58 +00:00
Ludovic Rousseau fcda77a1e0 debian/control: fix lintian warning vcs-field-uses-insecure-uri vcs-browser
Use https:// instead of http://
2016-03-20 16:34:06 +00:00
Ludovic Rousseau 4466e1f040 New upstream release 2016-03-20 16:30:39 +00:00
Ludovic Rousseau 510f087456 New upstream release 2015-12-25 20:28:43 +00:00
Ludovic Rousseau 480067f3c8 New upstream release 2015-08-05 11:05:22 +00:00
Ludovic Rousseau 99f73bda0b upload 2014-11-07 12:37:13 +00:00
Ludovic Rousseau c51b836d64 Fix "Socket activation not working on first try". Fixed upstream
(Closes: #767862)
2014-11-07 12:34:18 +00:00
Ludovic Rousseau 2d3f29ed9d debian/control: Standards-Version: 3.9.5 -> 3.9.6. No change needed. 2014-11-07 12:33:33 +00:00
Ludovic Rousseau 8bcee421f7 New upstream release 2014-11-07 12:31:39 +00:00
Ludovic Rousseau 260fcd5a98 Fix "Conflicting return types of function IsClientAuthorized"
fixed upstream (Closes: #751517)
2014-09-24 13:22:56 +00:00
Ludovic Rousseau 02b31de9cb New upstream release 2014-09-24 13:20:42 +00:00
Ludovic Rousseau ca27b2cb03 debian/control: Standards-Version: 3.9.4 -> 3.9.5. No change needed. 2014-05-18 15:33:06 +00:00
Ludovic Rousseau 51a54079f9 Fix "run dh-autoreconf to update config.{sub, guess} and {libtool,
aclocal}.m4" by using dh-autoreconf (Closes: #748275)
2014-05-18 15:19:41 +00:00
Ludovic Rousseau 2bbf65b095 debian/pcscd.{postinst,postrm}: remove these now useless files.
The /etc/readeer.conf file is no more used since 1.6.0-1. These files
can be removed since wheezy (actual stable).
2014-05-14 12:29:02 +00:00
Ludovic Rousseau ba190eaf3a Fix "pcscd should rely on dh-systemd to enable the socket" let dh-systemd
do its work. The package already Build-Depends: dh-systemd
(Closes: #748047)
2014-05-14 12:24:27 +00:00
Ludovic Rousseau 934df20203 New upstream release 2014-02-14 16:21:35 +00:00
Ludovic Rousseau 0c7334c911 debian/rules: build in parallel 2014-01-18 14:12:34 +00:00
Ludovic Rousseau 4e9287ac74 debian/watch: update URL 2014-01-18 14:09:25 +00:00
Ludovic Rousseau e4d3cb12e8 debian/control: fix lintian vcs-field-not-canonical for Vcs-Svn 2013-10-19 16:51:38 +00:00
Ludovic Rousseau ec703b5280 * New upstream release
* debian/libpcsclite1.symbols: remove the log_msg symbol. The bug is fixed
  upstream.
2013-10-19 16:48:34 +00:00
Ludovic Rousseau 867b203939 debian/libpcsclite1.symbols: add an entry for log_msg. It is a bug from
upstream bug lintian comlains if the symbol is not present with
symbols-file-contains-current-version-with-debian-revision
2013-10-16 15:26:07 +00:00
Ludovic Rousseau 68d433d5b1 released 2013-10-16 14:59:32 +00:00
Ludovic Rousseau 94e0e119a2 debian/control: Standards-Version: 3.9.3 -> 3.9.4. No change needed. 2013-10-16 14:56:02 +00:00
Ludovic Rousseau f7eed34e55 * New upstream release
* debian/control: try to fix lintian vcs-field-not-canonical
2013-10-16 14:52:44 +00:00
Ludovic Rousseau 651a5d3f70 Fix lintian debug-package-for-multi-arch-same-pkg-not-coinstallable
debian/control: Add "Multi-Arch: same" for libpcsclite1-dbg
2013-08-01 04:50:33 +00:00
Ludovic Rousseau e71f4f297c Fix "[PATCH] use dh-systemd" (Closes: #715257) 2013-08-01 04:40:01 +00:00
Ludovic Rousseau fc2e6978a9 upload 2013-05-11 11:59:40 +00:00
Ludovic Rousseau 7428c567e5 remove Depends: adduser since addgroup is no more used 2013-05-11 11:33:58 +00:00
Martin Pitt dfbea62b71 debian/pcscd.postinst: Check whether systemd init is running, not just for
the cgroup (which is also being used by logind).
2013-03-21 09:29:27 +00:00
Ludovic Rousseau 15a858a507 pcscd is no more sgid pcscd
pcscd is started as root either at startup or by systemd if systemd is
installed.

This file is now empty and can be removed.
2013-03-14 09:31:14 +00:00
Ludovic Rousseau af1e9a8ac2 Removed now useless file
All the directories are created during "make install"
2013-03-14 09:26:06 +00:00
Ludovic Rousseau e84b74d010 Fix "Please include SONAME in debug package name" rename libpcsclite-dbg
in libpcsclite1-dbg (Closes: #698372)
2013-02-09 19:56:11 +00:00
Ludovic Rousseau a6c11dc1e7 do not use a pcscd group any more. pcscd is started at boot or by systemd 2013-01-16 15:33:57 +00:00
Ludovic Rousseau 35aad9032f New upstream release 2013-01-16 15:26:46 +00:00
Ludovic Rousseau ed5bbc2b03 unstable 2012-11-28 19:29:59 +00:00
Ludovic Rousseau b5ec47ccfe New upstream release 2012-11-28 19:29:30 +00:00
Ludovic Rousseau de6dffbd37 Fix "Incorrect LSB header, Should-Start contains obsolete hal"
remove hal dependency from init script (Closes: #694019)
2012-11-25 16:21:32 +00:00
Ludovic Rousseau 8a13568ed4 debian/libpcsclite1.symbols: update the versioning to exact (or more
realistic) values.
See Debian bug #690074
2012-10-26 11:50:07 +00:00
Ludovic Rousseau 3e055f5cda Fix "Wrong way of inhibiting start when using systemd" by removing the
useless (and wrong) code (Closes: #691086)
2012-10-24 11:49:49 +00:00
Ludovic Rousseau 17f6d08440 * New upstream release
* debian/libpcsclite1.symbols: provide list symbols provided by
  libpcsclite.so.1 library
2012-08-30 18:19:42 +00:00
Ludovic Rousseau f761ebc1bd New upstream release 2012-08-04 14:40:40 +00:00
Ludovic Rousseau 08735303e7 * New upstream release
* urgency set to high since this version of pcsc-lite fixes the Alioth bug
  [#313684] "Reader name too long" error and need to be in wheezy before the
  freeze.
2012-06-26 19:14:34 +00:00
Ludovic Rousseau babbf2f74a rebuild for multi-arch. See bug #647522 2012-05-06 16:15:30 +00:00
Ludovic Rousseau 5032f25722 Fix "invoke-rc.d pcscd start starts the daemon again if allready
running" do not remove /var/run/pcscd/ if already present (Closes: #666465)
2012-03-31 16:14:15 +00:00
Ludovic Rousseau 5cf19e73cd Add multi-arch support. (LP: #949912) 2012-03-30 12:35:17 +00:00
Ludovic Rousseau 6fff3df342 Add Build-Depends: dpkg-dev (>= 1.16.1~) so that dpkg-buildflags supports
--export=configure as we use it in debian/rules. This is needed to easily
packport the package.
Thanks to Jean-Michel Pouré for the bug report.
2012-03-30 12:28:58 +00:00
Ludovic Rousseau 0b9f3b07f7 debian/control: Standards-Version: 3.9.2 -> 3.9.3. No change needed. 2012-03-30 12:24:32 +00:00
Ludovic Rousseau d1aa1cdbd6 * New upstream release
* Fix "fails to start if config directory contains subdirectories"
  fixed upstream (Closes: #658322)
2012-03-30 12:20:38 +00:00
Ludovic Rousseau 4d1e774de8 Fix "please package pcsc-spy.py tool" by installing pcsc-spy in
/usr/bin/ from package libpcsclite-dev (Closes: #655756)
2012-01-18 16:14:41 +00:00
Ludovic Rousseau 6a97240dfc Fix "please package libpcsclite debug symbols" by providing a new
package libpcsclite-dbg (Closes: #655915)
2012-01-18 16:06:15 +00:00
Ludovic Rousseau c6d649988d Fix "Please enabled hardened build flags" by using $(shell
dpkg-buildflags --export=configure) as a ./configure argument
(Closes: #656273)
2012-01-18 15:57:44 +00:00
Ludovic Rousseau afb9bd0b2c New upstream release 2012-01-18 15:53:54 +00:00
Ludovic Rousseau d92f936a1f Fix "[pcscd] unusable due to typo in init.d-script" Correctly set the
access rights of /var/run/pcscd (Closes: #652236)
2011-12-15 17:53:22 +00:00
Ludovic Rousseau e0af461603 If systemd is used then do not start pcscd at boot but on demand
http://ludovicrousseau.blogspot.com/2011/11/pcscd-auto-start-using-systemd.html
2011-12-03 13:49:05 +00:00
Ludovic Rousseau cd45894a2f debian/{control,rules}: do not Build-Depends: on systemd but use
--with-systemdsystemunitdir=/lib/systemd/system instead
Fix "Not building on !linux architectures" (Closes: #650251)
2011-11-29 22:20:43 +00:00
Ludovic Rousseau b2aa432275 debian/control: Add Build-Depends: systemd since the ./configure script
uses pkg-config --variable=systemdsystemunitdir systemd
2011-11-27 19:50:41 +00:00
Ludovic Rousseau 35c53b8885 debian/pcscd.postinst: Fix "Fails to configure" check that systemd is
installed _and_ running (Closes: #650174)
2011-11-27 19:36:59 +00:00
Ludovic Rousseau 0e2eb0be56 remove systemd special code 2011-11-25 19:38:03 +00:00
Ludovic Rousseau 04f1ad402b debian/control: libpcsclite-dev now provides libpcscspy.so 2011-11-25 16:29:27 +00:00
Ludovic Rousseau 90d6998914 debian/control: Suggests: systemd 2011-11-25 16:16:22 +00:00
Ludovic Rousseau 0b5d1d4b77 enable pcscd.socket instead of pcscd.service 2011-11-25 16:15:42 +00:00
Ludovic Rousseau cfb71e1a9f debian/pcscd.install: install systemd configuration files 2011-11-25 15:14:02 +00:00
Ludovic Rousseau 2443e18a8c debian/libpcsclite-dev.install: do not distribute the .la file any more 2011-11-25 15:02:58 +00:00
Ludovic Rousseau 9d4a3e029a Use only 1 Breaks: line 2011-11-25 14:56:03 +00:00
Ludovic Rousseau 81e74cd5ea debian/pcscd.dirs: do not install empty directories usr/lib/pcsc/drivers
and usr/lib/pcsc/services. Reported by lintian
2011-11-25 14:55:13 +00:00
Ludovic Rousseau f465a10c4a debian/control: libpcsclite1 now Breaks: instead of Conflicts:
libpcsclite-dev (<< ${binary:Version})
2011-11-25 14:52:40 +00:00
Ludovic Rousseau 3f9118b5df Fix lintian warning
P: pcsc-lite source: unversioned-copyright-format-uri http://dep.debian.net/deps/dep5/
2011-11-25 14:50:59 +00:00
Ludovic Rousseau 798d03caf5 debian/pcscd.postinst: enable pcscd for systemd is systemd is installed 2011-11-25 14:45:44 +00:00
Ludovic Rousseau c390675a6e debian/pcscd.init: do not start pcscd if systemd is used 2011-11-25 14:41:16 +00:00
Ludovic Rousseau 891451029b debian/pcscd.init: Fix "init.d status support" (Closes: #644127) 2011-11-25 14:34:32 +00:00
Ludovic Rousseau ec027643cb * New upstream release
* debian/copyright: use Machine-readable DEP-5 format
2011-11-25 14:26:57 +00:00
Ludovic Rousseau 9dc2311aa0 Fix "Please tighten the dependency to `libpcsclite1`" (Closes: #638329)
We now have:
pcscd Depends: libpcsclite1 (= ${binary:Version})
libpcsclite1 Breaks: pcscd (<< ${binary:Version})
It should be impossible to have pcscd and libpcsclite1 from 2 different
versions.
2011-08-27 18:03:56 +00:00
Ludovic Rousseau cfe927b44c unstable 2011-06-23 16:36:16 +00:00
Ludovic Rousseau a3e241709f * New upstream release
* Fix "Does not work with gnupg card" fixed upstream (Closes: #631333)
2011-06-23 16:32:48 +00:00
Ludovic Rousseau fa5147e8c1 debian/{rules,control}: special treatment for Hurd. Thanks to Pino Toscano
for the patch. Really Closes: #626201
2011-06-22 14:36:15 +00:00
Ludovic Rousseau 277fd49853 debian/control: Standards-Version: 3.9.1 -> 3.9.2. No change needed. 2011-06-22 10:00:26 +00:00
Ludovic Rousseau cfc113a72a * New upstream release
* Fix "FTBFS on hurd-i386" fixed upstream (Closes: #626201)
* Fix "pcscd slows down sutdown/restart" fixed upstream (Closes: #620305)
2011-06-22 09:56:01 +00:00
Ludovic Rousseau b91fbe2320 * Change pcscd dependency from Recommends: to Suggests: so that installing
an application using libpcsclite1 will not install pcscd by default. This
  should please wpasupplicant users.
* Fix "libpcsclite1 - Depends against a daemon" (Closes: #619883)
2011-04-16 14:49:11 +00:00
Ludovic Rousseau 769605bc43 * New upstream release
* Fix "pcscd fails to work with REINER SCT cyberJack" fixed upstream
  (Closes: #620232)
* debian/control: Build-Depends: on libusb2-dev on !linux-any systems
  (kFreeBSD) instead of libudev-dev
2011-03-31 20:19:06 +00:00
Ludovic Rousseau 9e51edd202 New upstream release 2011-03-30 08:40:12 +00:00
Ludovic Rousseau 5408ee6de3 Fix "fails to install" add a Depends: adduser so that addgroup is
available (Closes: #617698)
2011-03-10 19:29:52 +00:00
Ludovic Rousseau 88189a737f debian/control: add a Build-Depends: pkg-config since we use it to detect
the presence of libudev
2011-03-09 13:46:10 +00:00
Ludovic Rousseau 1e388e1536 Fix "please drop dependency on pcscd". libpcsclite1 now Recommends:
instead of Depends: on pcscd (Closes: #612971)
2011-03-09 13:37:20 +00:00
Ludovic Rousseau 62b30341c5 * New upstream release
* Fix "uses deprecated HAL" fixed upstream by using libudev instead
  (Closes: #587979)
2011-03-09 13:33:45 +00:00
Ludovic Rousseau 46cc8797b2 Fix typo 2011-02-22 23:00:09 +00:00
Ludovic Rousseau a829cb1245 Fix "missing dependecy for libpcsclite1 in fiting version" libpcsclite1
now depends on the exact same version of pcscd instead of just conflicting
with a previous version of pcscd (Closes: #613405)
2011-02-22 22:53:56 +00:00
Ludovic Rousseau 1b864af648 New upstream release 2011-02-22 22:51:11 +00:00
Ludovic Rousseau 1a95ad832f Fix "missing dependency for libccid > 1.4" pcscd now depends on version
>= 1.4.1~ of libccid. Previous versions of libccid do not have the udev
rule file to set the device permissions so the reader is not usable with
the pcscd when run as NON root (Closes: #613404)
2011-02-16 20:04:19 +00:00
Ludovic Rousseau a3b8d5d9e3 pcscd.dirs: remove usr/share/lintian/overrides since the override file was
removed in 1.6.5-1
2011-02-09 20:06:21 +00:00
Ludovic Rousseau 757f717533 Add release 1.5.5-4 in the history to have a trace of the CVE number 2011-02-09 20:01:57 +00:00
Ludovic Rousseau 79d5b212a1 upload to unstable 2011-02-09 19:54:18 +00:00
Ludovic Rousseau 60410409c4 * New upstream release
* Fix "Regression: My card{,-reader} fails with 1.6.5-1" bug fixed upstream
  (Closes: #606121)
* Fix "pcscd - Unneeded high privileges" pcscd is now running as a normal
  user in the pcscd group (Closes: #606142)
  See http://ludovicrousseau.blogspot.com/2010/09/pcscd-auto-start.html
  The driver package shall privide a udev rule file to set the correct
  permissions on the device. libccid does that.
2010-12-12 15:10:27 +00:00
Ludovic Rousseau 9d7b5b4aa2 debian/pcscd.README.Debian: remove outdated "pscsd starts before usbmgr"
section and add "pscsd sgid pcscd" section
2010-12-04 22:15:02 +00:00
Ludovic Rousseau baa6e684f4 use --quiet for addgroup to avoid a message if the group already exists 2010-12-04 21:54:06 +00:00
Ludovic Rousseau c0a2c72c71 debian/pcscd.postinst: create the pcscd group and setgid pcscd to it 2010-12-04 16:17:13 +00:00
Ludovic Rousseau 982a1abdb3 debian/pcscd.init: create $IPCDIR with correct access rights 2010-12-04 16:08:43 +00:00
Ludovic Rousseau 15bb1a7cb4 * debian/rules: do not install pcscd suid root
* debian/pcscd.lintian-overrides: removed since no more lintian warnings
2010-12-04 15:55:00 +00:00
Ludovic Rousseau 90858ecffb New upstream release 2010-12-04 15:51:49 +00:00
Ludovic Rousseau a2aea9a72e debian/control: remove Conflicts: libccid (<= 1.0.0-1)
stable (lenny) already has libccid 1.3.8
lintian complained that Breaks should be used instead
2010-08-15 19:24:09 +00:00
Ludovic Rousseau b1bea06ee4 debian/rules: install pcscd suid root. This was broken in previous
packages.
2010-08-15 19:21:18 +00:00
Ludovic Rousseau ba0704993b New upstream release 2010-08-15 18:54:27 +00:00
Ludovic Rousseau e0be67fbd3 New upstream release 2010-08-15 15:57:15 +00:00
Ludovic Rousseau ae246d720e Fix "depends on pcscd which is priority: extra". The 3 packages are now
priority "optional" (Closes: #591151)
2010-08-04 09:49:03 +00:00
Ludovic Rousseau 53cb88e861 debian/control: Standards-Version: 3.8.4 -> 3.9.1. No change needed. 2010-08-04 09:41:24 +00:00
Ludovic Rousseau bd5ec797fe * New upstream release
* debian/rules: use the minimal dh rules
2010-08-04 09:33:24 +00:00
Ludovic Rousseau 344481ac77 New upstream release 2010-06-04 13:56:10 +00:00
Ludovic Rousseau fb06a3c4bc install an /etc/init.d/pcscd file again but with the daemon disabled.
This should ease upgrades and allow users to still start the daemon on
startup if needed.
2010-05-14 15:35:26 +00:00
Ludovic Rousseau 8b23f92016 debian/control: libpcsclite1 now Depends: instead of Suggests: on pcscd
The daemon is not started at boot time but only on request so the CPU cost
is zero if not used.
2010-05-12 19:17:53 +00:00
Ludovic Rousseau 7e67aa4c19 do not start pcscd at startup any more. pcscd is started by libpcsclite.so
when needed. But install pcscd as setuid root now. You can restrict the
access rights of pcscd to limit its use to a particular group if needed.
2010-05-12 19:13:51 +00:00
Ludovic Rousseau 84bfb8611f debian/rules: add --sysconfdir=/etc 2010-05-12 18:54:43 +00:00
Ludovic Rousseau 476a777f21 debian/source/format: use "3.0 (quilt)" format 2010-05-12 16:25:32 +00:00
Ludovic Rousseau c29340f729 configure pcscd to use --enable-confdir=/etc/reader.conf.d instead of
/var/lib/pcscd since pcscd can now parse a directory and each file in it.
. Also remove update-reader.conf(8) script and related files since it is
now useless.
. pcscd.postinst now removes the unused files instead of calling
update-reader.conf. This script can be removed for squeeze+1
2010-05-12 13:57:18 +00:00
Ludovic Rousseau 2ecbe5d793 debian/libpcsclite-dev.install: do not install libpcsclite.a since it is
no more built upstream.
2010-05-12 13:49:00 +00:00
Ludovic Rousseau beb596a702 New upstream release 2010-05-12 13:38:47 +00:00
Ludovic Rousseau dffd11faef use debhelper compat V7 2010-02-03 10:57:54 +00:00
Ludovic Rousseau 1613be3717 Fix "update-reader.conf depends on collation order, but does not
override LC_ALL" by using unset LC_ALL (Closes:
#567764)
2010-02-03 10:38:50 +00:00
Ludovic Rousseau 19fc8785a3 debian/update-reader.conf: store the generated configuration file in
/var/lib/pcscd instead of /etc. This should really close #565896.
2010-02-03 10:35:45 +00:00
Ludovic Rousseau 8dab20a383 fix lintian warning: I: pcsc-lite source:
binary-control-field-duplicates-source field "priority" in package pcscd
2010-01-30 18:50:37 +00:00
Ludovic Rousseau 35a70990ea Standards-Version: 3.8.1 -> 3.8.4, no change needed 2010-01-30 18:44:33 +00:00
Ludovic Rousseau 1808e4a514 fix lintian warning: debhelper-but-no-misc-depends 2010-01-30 17:33:23 +00:00
Ludovic Rousseau 4c69c3a259 debian/update-reader.conf: add a SHA1 on the first line of the
configuration file to detect manual edition. Closes: #565896 "pcscd:
overwrites changes in configuration files"
urgency=medium because of RC bug.
2010-01-30 16:48:51 +00:00
Ludovic Rousseau 3068de54b8 reformat 2010-01-30 16:39:09 +00:00
Ludovic Rousseau 870f7186f5 New upstream release 2009-07-28 22:07:10 +00:00
Ludovic Rousseau bcec4251a7 * New upstream release
- Fix "creates a world-writable directory" bug fixed upstream by adding the
 sticky bit to teh directory (Closes: #533670)
2009-06-24 07:04:16 +00:00
Ludovic Rousseau 2121bb084f * NOT RELEASED YET
* debian/watch: new format
2009-05-01 12:00:44 +00:00
Ludovic Rousseau fa6777369d New upstream release 2009-04-29 13:38:52 +00:00
Ludovic Rousseau 5f6a072149 * Standards-Version: 3.7.3 -> 3.8.1
- add support of noopt and parallel options in DEB_BUILD_OPTIONS
 - resynch pcscd.init with /etc/init.d/skeleton
2009-03-29 15:06:14 +00:00
Ludovic Rousseau a5274e6123 debian/rules: use symbolic links instead of copy to update config.sub and
config.guess as suggested in /usr/share/doc/autotools-dev/README.Debian.gz
Tries to limit difference with the Ubuntu package
2009-03-29 14:22:35 +00:00
Ludovic Rousseau 18ac091ea6 debian/control: update Build-Depends: for debhelper
lintian warning: debhelper-script-needs-versioned-build-depends dh_lintian
(>= 6.0.7~)
2009-02-15 15:44:06 +00:00
Ludovic Rousseau b5f60c69ee debian/pcscd.postinst: do not use an absolute path for update-reader.conf
lintian warning: command-with-path-in-maintainer-script
2009-02-15 15:12:08 +00:00
Ludovic Rousseau f94a0c5e88 New upstream release 2009-02-15 14:54:50 +00:00
Ludovic Rousseau a95804942e use .bz2 extension instead of .gz 2008-10-18 14:11:19 +00:00
Ludovic Rousseau d712e7dac4 remove tag rule since we now use SVN instead of CVS 2008-10-16 14:34:16 +00:00
Ludovic Rousseau 8386c43596 add CFLAGS="${CFLAGS}" in ./configure arguments to pass the -D_REENTRANT
option
2008-10-16 14:29:24 +00:00
Ludovic Rousseau d4cd71d4e9 pcscd no more Conflicts: with libpcsclite0 since libpcsclite0 is no more
in Debian
2008-06-27 08:16:51 +00:00
Ludovic Rousseau ecf4f2a720 change from Recommends: to Suggests: pcscd for
libpcsclite1
Closes: #476483: libpcsclite1: should suggest pcscd, not recommend it
2008-06-27 08:12:26 +00:00
Ludovic Rousseau 8d902800e7 New upstream release 2008-06-27 08:09:07 +00:00
Ludovic Rousseau 1c6eee8928 use dh_lintian instead of a manual installation 2008-05-11 11:17:27 +00:00
Ludovic Rousseau ef372fcc00 Closes: #478615: "pcsc-lite: bashism in debian/rules" 2008-05-06 13:03:17 +00:00
Ludovic Rousseau d6d377cae9 remove reference to formaticc(1) and bundleTool(8) since they are no
more provided.
Closes: #479465: "pcscd: formaticc is not shipped, but description says
so"
2008-05-06 13:01:23 +00:00
Ludovic Rousseau ea9c4199fb do not set CFLAGS since dpkg-dev (>= 1.14.17) does it for me 2008-04-30 18:24:34 +00:00
Ludovic Rousseau b89a8d56b1 New upstream release 2008-04-30 15:42:17 +00:00
Ludovic Rousseau 31c8d92b66 remove usbmgr and hotplug from Should-Start: and Should-Stop: since
these packages are no more available in lenny
2008-04-04 13:33:35 +00:00
Ludovic Rousseau b837eb0ed7 add hal to LSB Should-Start/Stop. Closes: #474238 "pcscd: LSB init
script doesn't depend on hal"
2008-04-04 13:22:11 +00:00
Ludovic Rousseau dae272b653 add --sysconfdir=/etc to correctly generate path in pcscd(8) manpage 2008-04-04 13:16:21 +00:00
Ludovic Rousseau 9fd415e112 add --sysconfdir=/etc to correctly generate path in pcscd(8) manpage 2008-03-25 14:10:36 +00:00
Ludovic Rousseau 550262f9f8 add Depends: hal. Closes: #472493: "pcscd: must depends on hald" 2008-03-24 19:20:00 +00:00
Ludovic Rousseau 1c5ab1fdc8 Build-Depends: libusb-dev -> libhal-dev 2008-03-23 14:01:23 +00:00
Ludovic Rousseau 749e83a19c remove "seperate" from the bug description to avoid 3 lintian warnings:
spelling-error-in-changelog seperate separate
2008-03-23 13:52:39 +00:00
Ludovic Rousseau 17fc504767 UNRELEASED -> unstable 2008-03-23 13:51:34 +00:00
Ludovic Rousseau 5907d3dd42 New upstream release
- Closes: #471673 "pcscd: Polls to much when on battery"
2008-03-23 13:47:37 +00:00
Ludovic Rousseau 4bcc78c6bf fix a typo. Closes: Bug#468743: 'man update-reader' typo: "seperate" 2008-03-07 12:36:43 +00:00
Ludovic Rousseau b2fbc8e7e0 add Vcs-Svn: and Vcs-Browser: now the packaging is hosted on
alioth/collab-maint
2008-03-05 19:30:08 +00:00
Ludovic Rousseau e7639692c6 move files 2008-03-02 20:16:58 +00:00
Ludovic Rousseau 55023437c1 correct a typo. Closes: Bug#466724: "pcscd: Typo in package description" 2008-02-20 17:09:06 +00:00
Ludovic Rousseau 46641422d6 use --retry=3 instead of --retry=TERM/30/KILL/5 in stop rule 2008-02-02 16:43:13 +00:00
Ludovic Rousseau e9f0418938 do not try to kill children since pcscd do not fork 2008-02-02 16:39:53 +00:00
Ludovic Rousseau 76516bf2e0 include /etc/default/pcscd if present and document its usage 2008-01-20 14:26:06 +00:00
Ludovic Rousseau 8c0000d229 lintian ignore package-contains-empty-directory for
usr/lib/pcsc/{drivers,services}/
2008-01-09 12:50:20 +00:00
Ludovic Rousseau 3600020d5b remove very old commented code to clean /tmp/pcsc and also remove
debian/pcscd.postinst.lintian_override
2008-01-09 09:27:13 +00:00
Ludovic Rousseau e871ccb8be Standards-Version: 3.7.2.0 -> 3.7.3. no change needed 2008-01-09 09:16:56 +00:00
Ludovic Rousseau 475cb36289 pid file is now in /var/run/pcscd/ 2008-01-09 09:14:52 +00:00
Ludovic Rousseau 35d9187da4 typo 2008-01-09 09:11:38 +00:00
Ludovic Rousseau 1e473a529f New upstream release 2008-01-09 09:09:02 +00:00
Ludovic Rousseau 73b0dd50e2 release 1.4.4-3 2007-12-06 20:55:42 +00:00
Ludovic Rousseau 09f6ef1504 1.4.4-3 2007-11-29 23:09:10 +00:00
Ludovic Rousseau 5110fd0fc0 PIDFILE=/var/run/$NAME.pid instead of /var/run/pcscd/$NAME.pid
Closes: #451704 "Latest version takes a lot to shut down"
2007-11-29 23:07:32 +00:00
Ludovic Rousseau 6753aaf469 release 1.4.4-2 2007-11-07 16:27:41 +00:00
Ludovic Rousseau 96c2c0fb4f use Homepage: field 2007-11-07 16:25:20 +00:00
Ludovic Rousseau 03b4c3a0e4 update URL to make it work again. Closes: #449679 2007-11-07 16:24:33 +00:00
Ludovic Rousseau 6d955d7b2e PIDFILE and PUBFILE are now in /var/run/pcscd/ 2007-10-23 19:58:31 +00:00
Ludovic Rousseau f2293e8322 define LANG before starting pcscd so that the CCID driver and PC pinpad
can use the correct language
2007-10-23 19:57:51 +00:00
Ludovic Rousseau 5daceb0a9a release 1.4.4-1 2007-08-14 17:49:39 +00:00
Ludovic Rousseau 835d20850c 1.4.4-1 2007-08-14 17:44:54 +00:00
Ludovic Rousseau 57e064c7d6 1.4.3-1 2007-06-19 19:26:10 +00:00
Ludovic Rousseau 6a30dec16c 1.4.3-1 2007-06-19 19:20:12 +00:00
Ludovic Rousseau 8cae3e0671 use ${binary:Version} instead of ${Source-Version} 2007-06-17 19:19:42 +00:00
Ludovic Rousseau 827bde37eb 1.4.2-1 2007-05-23 16:50:07 +00:00
Ludovic Rousseau fd41eea166 do not specify --enable-runpid=/var/run/pcscd.pid since it is the
default now
2007-05-16 12:42:57 +00:00
Ludovic Rousseau 4d8f58d3e4 Standards-Version: 3.6.2.0 -> 3.7.2.0. No change needed 2007-05-16 12:41:20 +00:00
Ludovic Rousseau fd6b3f805a no PDF to distribute 2007-05-16 12:36:45 +00:00
Ludovic Rousseau 54b7fb01d1 remove Build-Depends: tetex-bin, tetex-extra since the PDF are no more
built
2007-05-16 12:36:03 +00:00
Ludovic Rousseau ea9831bf55 1.4.1-1 2007-05-16 12:35:02 +00:00
Ludovic Rousseau 406822a1e5 build-stamp depends on configure-stamp to avoid a build before configure
is executed
2007-04-21 22:05:30 +00:00
Ludovic Rousseau f9ab20157b release 1.4.0-1 2007-04-21 21:46:36 +00:00
Ludovic Rousseau ad873461d4 move debian in trunk/ 2007-04-21 21:46:12 +00:00
Ludovic Rousseau d059ca7732 [svn-inject] Applying Debian modifications to trunk 2007-04-21 21:45:32 +00:00
Ludovic Rousseau b0ef25bd6e Creating trunk directory 2007-04-21 21:45:31 +00:00
41 changed files with 2367 additions and 69 deletions

View File

@ -1,3 +1,13 @@
1.9.9: Ludovic Rousseau
11 September 2022
- SCardEstablishContext() may return SCARD_W_SECURITY_VIOLATION if refused by Polkit
- Fix SCardReleaseContext() failure on orphan handles
- Fix SCardDisconnect() on orphan handle
- pcsc-spy: log the pioSendPci & pioRecvPci SCardTransmit() parameters
- Improve the log from pcscd: log the return code in text instead of hex
- Some other minor improvements
1.9.8: Ludovic Rousseau
11 June 2022
- Install install_spy.sh & uninstall_spy.sh scripts in docdir

View File

@ -1,4 +1,290 @@
commit 41dc5a51321bc3198af36574f73dc007cab72a7d (HEAD -> master, tag: 1.9.8)
commit 15c16c7796607b1c8a2ce253d3f536918ab26b4a (HEAD -> master, origin/master, origin/HEAD)
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun Sep 11 16:12:03 2022 +0200
Release 1.9.9
Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
ChangeLog | 10 ++++++++++
configure.ac | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
commit d069c580b74273bfcf12523b73f71bb6be9378dd (zotac/master, github/master)
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun Sep 11 13:59:34 2022 +0200
c.sh: reformat
c.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 241a993f954b00cbb5904ac5fc6e4425977fc319
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Thu Sep 8 19:43:39 2022 +0200
UT control_get_firmware: support multi-readers
Do not exit if the command fails with a reader but continue with the other
readers.
UnitaryTests/control_get_firmware.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
commit 1935b6997b281f0d836b829b4cfeeab6c81c3ded
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Aug 20 15:29:28 2022 +0200
SCardEstablishContext() may return SCARD_W_SECURITY_VIOLATION
See the previous patch for details.
src/winscard_clnt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 68f629ffecaec3886c717021e70ac62c22b38bd8
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Aug 20 15:13:00 2022 +0200
MessageReceive() may return SCARD_W_SECURITY_VIOLATION
If the daemon kills/resets the connection because the user is not
authorized by Polkit then the client side now returns
SCARD_W_SECURITY_VIOLATION instead of the too generic
SCARD_F_COMM_ERROR.
Polkit is used in RedHat/Fedora. Users connected by ssh do not have
access to PC/SC by default.
On the daemon side we have in the logs:
00000003 [139737213696960] pcscdaemon.c:133:SVCServiceRunLoop() A new
context thread creation is requested: 10
00019807 [139737012623104] auth.c:139:IsClientAuthorized() Process
41685 (user: 1000) is NOT authorized for action: access_pcsc
00000107 [139737012623104] winscard_svc.c:335:ContextThread() Rejected
unauthorized PC/SC client
But this information was not available in the client side.
pcsc_scan will now report:
$ pcsc_scan
SCardEstablishContext: Access denied.
This has been discussed on the pcsclite-muscle mailing list at:
"[Pcsclite-muscle] Change the error code when PC/SC access is refused by
polkit?"
http://lists.infradead.org/pipermail/pcsclite-muscle/2022-July/001279.html
src/winscard_msg.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
commit 34f27e766f413d8f37a95ad605dbe6f664c077bc
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Aug 20 15:03:53 2022 +0200
pcsc_stringify_error(): add SCARD_W_SECURITY_VIOLATION
src/error.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
commit 8eca1a54b252a84f5498ac5e5b84e81a47c9d231
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Aug 20 14:45:14 2022 +0200
Remove unsed #define
SCARD_PROTOCOL_ANY_OLD is no more used on the client side.
src/winscard_clnt.c | 3 ---
1 file changed, 3 deletions(-)
commit 6a6291eb8e7906d4f63c962360e5fdc5d6d745db
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Aug 13 14:44:28 2022 +0200
Log the error in text and not just the hex code
We now have:
00000008 [139893430789696] winscard.c:1621:SCardTransmit() Card not transacted: rv=SCARD_E_NO_SMARTCARD
instead of:
00000008 [139893430789696] winscard.c:1621:SCardTransmit() Card not transacted: rv=0x8010000C
src/eventhandler.c | 2 +-
src/readerfactory.c | 2 +-
src/winscard.c | 14 +++++++-------
3 files changed, 9 insertions(+), 9 deletions(-)
commit fecbcac0e6a8cf43b691151fef2967600098b49b
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Aug 13 14:52:42 2022 +0200
UnitaryTests: fix a deprecation warning
UnitaryTests/ThreadSafeConnect.py:87: DeprecationWarning: getName() is deprecated, get the name attribute instead
print("joined:", thread.getName())
UnitaryTests/ThreadSafeConnect.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit 13bd3dcc9fa1ae6894ac4f882c5a62b28a6adde5
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Aug 13 14:41:59 2022 +0200
export rv2txt() function
convert from integer rv value to a string value
SCARD_S_SUCCESS -> "SCARD_S_SUCCESS"
src/PCSC/debuglog.h | 2 ++
src/debuglog.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
commit 002d1ffef359cfba1c45f24c78ac21e18925e670
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Fri Aug 12 17:51:37 2022 +0200
Improve the log from pcscd
- log the return code in text instead of hex
00000002 [139848448452160] winscard_svc.c:523:ContextThread() CONNECT for client 12, rv=SCARD_E_UNKNOWN_READER
insted of:
00000004 [140270933177920] winscard_svc.c:523:ContextThread() CONNECT rv=0x80100009 for client 12
- colorize the return value in red in case it is different from SCARD_S_SUCCESS
The idea is to more easily spot an error code in the values returned by
pcscd.
src/PCSC/debuglog.h | 5 +++
src/debuglog.c | 109 ++++++++++++++++++++++++++++++++++++++++++++++++----
src/winscard_svc.c | 2 +-
3 files changed, 107 insertions(+), 9 deletions(-)
commit e2de54e00f2ebeebf633adef32228d2af33a6483
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Jul 30 14:02:49 2022 +0200
pcsc-spy: log the pioSendPci & pioRecvPci SCardTransmit() parameters
The pioSendPci contains the protocol to use and may be important to
diagnose a SCARD_E_PROTO_MISMATCH error.
src/spy/libpcscspy.c | 4 ++++
src/spy/pcsc-spy | 30 ++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+)
commit af1f32ca3762374dc66aac972c0c3fc50e9ae566
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun Jul 17 17:57:26 2022 +0200
pcscd.8: remove reference to bundleTool
bundleTool is no more provided with pcsc-lite since
84448b0d2a7b5300837c40311f12d81a959a9f45 in 2006.
doc/pcscd.8.in | 1 -
1 file changed, 1 deletion(-)
commit ff8f77d445ebf7f863ed4cf4951b7ab6e1d08426
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun Jul 17 17:52:29 2022 +0200
pcscd.8: fix typo in manpage
doc/pcscd.8.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit c35130f2215b75c6d54c4f0162d68548a6de4bab
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun Jun 19 21:32:20 2022 +0200
Improve SCardDisconnect fix
Same justification as for the previous patch. RFReaderInfoById() may
return SCARD_E_READER_UNAVAILABLE.
src/winscard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit d7a08877c3f1d423f8fcfcb5b60f2cf6fefeceda
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun Jun 19 21:27:46 2022 +0200
Improve SCardReleaseContext fix
From Maksim Ivanov:
SCARD_E_READER_UNAVAILABLE can be returned by RFReaderInfoById(): it's a
corner case when the reader context is still there, but has a zero
reference count.
See RFReaderInfoById() using the REF_READER macro, which calls
_RefReader() (and returns its error code on error), which in turn has
this code:
if (0 == sReader->reference)
return SCARD_E_READER_UNAVAILABLE;
src/winscard_svc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
commit d0e594789096c7b99ace1ec6ab2cecb7961747cb
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun Jun 19 18:53:36 2022 +0200
Test orphan handles
Check the return values of SCardDisconnect() and SCardReleaseContext()
after a reader removal.
UnitaryTests/SCard_RemovedReader.py | 80 +++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
commit a4e5bf41ae652fd3837cc446a5a8cce0f4249845
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun Jun 19 18:49:42 2022 +0200
Fix SCardDisconnect on orphan handle
If the reader is removed between SCardConnect() and SCardDisconnect()
then SCardDisconnect() should not fail with SCARD_E_INVALID_VALUE.
We now have the same behavior as on Windows 10.
This patch is quiet similar to the previous one from Maksim Ivanov.
Thanks for the idea.
src/winscard.c | 3 +++
1 file changed, 3 insertions(+)
commit 2735a6d1b7ffa5ca81e602417516a9c0702c0fcd
Author: Maksim Ivanov <emaxx@google.com>
Date: Sat Jun 18 13:46:38 2022 +0200
Fix SCardReleaseContext failure on orphan handles
Fix returning a spurious error from SCardReleaseContext() for a
correct SCARDCONTEXT, in case there was an orphan SCARDHANDLE left after
disconnecting a reader.
The error was caused by the fact that SCardReleaseContext attempts to do
SCardDisconnect for all active SCARDHANDLEs stored in SCARDCONTEXT,
which fails when the handle was already deleted by the hotplug code from
READER_CONTEXT or the reader got zero reference count.
src/winscard_svc.c | 59 ++++++++++++++++++++++++++++++------------------------
1 file changed, 33 insertions(+), 26 deletions(-)
commit 2c3e9156bea6d658f5f7af801f5b92cdb9c83882
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Mon Jun 13 17:11:50 2022 +0200
pcscd.h: remove unused PCSCLITE_STATUS_WAIT
PCSCLITE_STATUS_WAIT is no more used since
c2a93242e445558ead8eea40223482ee8995954a in 2008.
src/pcscd.h.in | 2 --
1 file changed, 2 deletions(-)
commit 41dc5a51321bc3198af36574f73dc007cab72a7d (tag: 1.9.8)
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sat Jun 11 10:49:34 2022 +0200
@ -10,7 +296,7 @@ Date: Sat Jun 11 10:49:34 2022 +0200
configure.ac | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
commit f7f80db5fae5f15c0d0ce2e6cd81a5c11c0a7510 (zotac/master, origin/master, origin/HEAD, github/master)
commit f7f80db5fae5f15c0d0ce2e6cd81a5c11c0a7510
Author: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Fri Jun 10 09:58:46 2022 +0200

View File

@ -160,7 +160,7 @@ DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(top_srcdir)/src/PCSC/pcsclite.h.in AUTHORS COPYING ChangeLog \
INSTALL NEWS README TODO ar-lib compile config.guess \
config.sub install-sh ltmain.sh missing ylwrap
config.sub depcomp install-sh ltmain.sh missing ylwrap
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

20
configure vendored
View File

@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for pcsc-lite 1.9.8.
# Generated by GNU Autoconf 2.71 for pcsc-lite 1.9.9.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@ -618,8 +618,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='pcsc-lite'
PACKAGE_TARNAME='pcsc-lite'
PACKAGE_VERSION='1.9.8'
PACKAGE_STRING='pcsc-lite 1.9.8'
PACKAGE_VERSION='1.9.9'
PACKAGE_STRING='pcsc-lite 1.9.9'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@ -1424,7 +1424,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures pcsc-lite 1.9.8 to adapt to many kinds of systems.
\`configure' configures pcsc-lite 1.9.9 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1495,7 +1495,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of pcsc-lite 1.9.8:";;
short | recursive ) echo "Configuration of pcsc-lite 1.9.9:";;
esac
cat <<\_ACEOF
@ -1649,7 +1649,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
pcsc-lite configure 1.9.8
pcsc-lite configure 1.9.9
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@ -2065,7 +2065,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by pcsc-lite $as_me 1.9.8, which was
It was created by pcsc-lite $as_me 1.9.9, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@ -3336,7 +3336,7 @@ fi
# Define the identity of the package.
PACKAGE='pcsc-lite'
VERSION='1.9.8'
VERSION='1.9.9'
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@ -17242,7 +17242,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by pcsc-lite $as_me 1.9.8, which was
This file was extended by pcsc-lite $as_me 1.9.9, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@ -17310,7 +17310,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
pcsc-lite config.status 1.9.8
pcsc-lite config.status 1.9.9
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"

View File

@ -3,7 +3,7 @@
AC_PREREQ([2.69])
AC_INIT([pcsc-lite],[1.9.8])
AC_INIT([pcsc-lite],[1.9.9])
AC_CONFIG_SRCDIR(src/pcscdaemon.c)
AM_INIT_AUTOMAKE(1.8 dist-bzip2 no-dist-gzip)
AC_CONFIG_HEADERS([config.h])

1405
debian/changelog vendored Normal file

File diff suppressed because it is too large Load Diff

65
debian/control vendored Normal file
View File

@ -0,0 +1,65 @@
Source: pcsc-lite
Section: misc
Priority: optional
Maintainer: Ludovic Rousseau <rousseau@debian.org>
Build-Depends: autoconf-archive,
debhelper-compat (= 12),
flex,
libsystemd-dev,
libudev-dev [linux-any],
libusb2-dev [kfreebsd-any],
pkg-config
Standards-Version: 4.6.1
Rules-Requires-Root: no
Vcs-Git: https://salsa.debian.org/debian/pcsc-lite.git
Vcs-Browser: https://salsa.debian.org/debian/pcsc-lite
Homepage: https://pcsclite.apdu.fr/
Package: pcscd
Architecture: any
Depends: libccid | pcsc-ifd-handler, ${shlibs:Depends}, ${misc:Depends}, lsb-base, libpcsclite1 (= ${binary:Version})
Suggests: systemd
Multi-Arch: foreign
Pre-Depends: ${misc:Pre-Depends}
Description: Middleware to access a smart card using PC/SC (daemon side)
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
in a very small form factor for communicating to smart cards and
smart cards readers.
.
The PC/SC daemon is used to dynamically allocate/deallocate reader
drivers at runtime and manage connections to the readers.
Package: libpcsclite-dev
Section: libdevel
Architecture: any
Depends: libpcsclite1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Pre-Depends: ${misc:Pre-Depends}
Recommends: python3
Multi-Arch: same
Description: Middleware to access a smart card using PC/SC (development files)
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
in a very small form factor for communicating to smart cards and
smart cards readers.
.
This package contains the files needed for compiling and linking
an application that communicates to any reader available to the
PC/SC daemon.
.
This package also contains the PC/SC spying library: libpcscspy.so
See http://ludovicrousseau.blogspot.com/2011/11/pcsc-api-spy-third-try.html
Package: libpcsclite1
Section: libs
Architecture: any
Breaks: libpcsclite-dev (<< ${binary:Version}), pcscd (<< ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}
Pre-Depends: ${misc:Pre-Depends}
Multi-Arch: same
Suggests: pcscd (= ${binary:Version})
Description: Middleware to access a smart card using PC/SC (library)
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
in a very small form factor for communicating to smartcards and
readers.
.
The PC/SC Lite library is used to connect to the PC/SC daemon from
a client application and provide access to the desired reader.

57
debian/copyright vendored Normal file
View File

@ -0,0 +1,57 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pcsc-lite
Upstream-Contact: muscle@lists.musclecard.com
ludovic.rousseau@free.fr
Source: https://salsa.debian.org/rousseau/PCSC
Files: *
Copyright: Copyright (c) 1999-2003 David Corcoran <corcoran@linuxnet.com>
Copyright (c) 2001-2022 Ludovic Rousseau <ludovic.rousseau@free.fr>
License: BSD-3-clause
All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
.
Changes to this license can be made only by the copyright author with
explicit written consent.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Files: src/simclist.?
Copyright: Copyright (c) 2007,2008 Mij <mij@bitchx.it>
License: ISC
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Files: debian/* src/spy/*
Copyright: 2002-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
License: GPL-3+
/usr/share/common-licenses/GPL-3

2
debian/libpcsclite-dev.docs vendored Normal file
View File

@ -0,0 +1,2 @@
usr/share/doc/pcsc-lite/install_spy.sh
usr/share/doc/pcsc-lite/uninstall_spy.sh

1
debian/libpcsclite-dev.examples vendored Normal file
View File

@ -0,0 +1 @@
doc/example/pcsc_demo.c

5
debian/libpcsclite-dev.install vendored Normal file
View File

@ -0,0 +1,5 @@
usr/include/PCSC/*
usr/lib/*/libpcsclite.so
usr/lib/*/pkgconfig/libpcsclite.pc
usr/lib/*/libpcscspy.so.*
usr/bin/pcsc-spy

1
debian/libpcsclite-dev.manpages vendored Normal file
View File

@ -0,0 +1 @@
debian/tmp/usr/share/man/man1/pcsc-spy.1

24
debian/libpcsclite-dev.symbols vendored Normal file
View File

@ -0,0 +1,24 @@
libpcscspy.so.0 libpcsclite-dev #MINVER#
* Build-Depends-Package:libpcsclite-dev
SCardBeginTransaction@Base 1.8.0
SCardCancel@Base 1.8.0
SCardConnect@Base 1.8.0
SCardControl@Base 1.8.0
SCardDisconnect@Base 1.8.0
SCardEndTransaction@Base 1.8.0
SCardEstablishContext@Base 1.8.0
SCardFreeMemory@Base 1.8.0
SCardGetAttrib@Base 1.8.0
SCardGetStatusChange@Base 1.8.0
SCardIsValidContext@Base 1.8.0
SCardListReaderGroups@Base 1.8.0
SCardListReaders@Base 1.8.0
SCardReconnect@Base 1.8.0
SCardReleaseContext@Base 1.8.0
SCardSetAttrib@Base 1.8.0
SCardStatus@Base 1.8.0
SCardTransmit@Base 1.8.0
g_rgSCardRawPci@Base 1.8.0
g_rgSCardT0Pci@Base 1.8.0
g_rgSCardT1Pci@Base 1.8.0
pcsc_stringify_error@Base 1.8.0

1
debian/libpcsclite1.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/libpcsclite.so.1*

24
debian/libpcsclite1.symbols vendored Normal file
View File

@ -0,0 +1,24 @@
libpcsclite.so.1 libpcsclite1 #MINVER#
* Build-Depends-Package:libpcsclite-dev
SCardBeginTransaction@Base 1.0.0
SCardCancel@Base 1.0.0
SCardConnect@Base 1.0.0
SCardControl@Base 1.3.0
SCardDisconnect@Base 1.0.0
SCardEndTransaction@Base 1.0.0
SCardEstablishContext@Base 1.0.0
SCardFreeMemory@Base 1.5.0
SCardGetAttrib@Base 1.0.0
SCardGetStatusChange@Base 1.0.0
SCardIsValidContext@Base 1.3.3
SCardListReaderGroups@Base 1.0.0
SCardListReaders@Base 1.0.0
SCardReconnect@Base 1.0.0
SCardReleaseContext@Base 1.0.0
SCardSetAttrib@Base 1.0.0
SCardStatus@Base 1.0.0
SCardTransmit@Base 1.0.0
g_rgSCardRawPci@Base 1.0.0
g_rgSCardT0Pci@Base 1.0.0
g_rgSCardT1Pci@Base 1.0.0
pcsc_stringify_error@Base 1.3.0

4
debian/not-installed vendored Normal file
View File

@ -0,0 +1,4 @@
usr/share/doc/pcsc-lite/README.DAEMON
usr/lib/*/libpcsclite.la
usr/lib/*/libpcscspy.so
usr/lib/*/libpcscspy.la

11
debian/patches/256slots.patch vendored Normal file
View File

@ -0,0 +1,11 @@
--- a/src/PCSC/pcsclite.h.in
+++ b/src/PCSC/pcsclite.h.in
@@ -281,7 +281,7 @@ extern const SCARD_IO_REQUEST g_rgSCardT
#define PCSCLITE_VERSION_NUMBER "@VERSION@" /**< Current version */
/** Maximum readers context (a slot is count as a reader) */
-#define PCSCLITE_MAX_READERS_CONTEXTS 16
+#define PCSCLITE_MAX_READERS_CONTEXTS 256
#define MAX_READERNAME 128

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
256slots.patch

3
debian/pcscd.docs vendored Normal file
View File

@ -0,0 +1,3 @@
README
SECURITY
usr/share/doc/pcsc-lite/README.polkit

146
debian/pcscd.init vendored Normal file
View File

@ -0,0 +1,146 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: pcscd
# Required-Start: $local_fs $remote_fs $syslog
# Required-Stop: $local_fs $remote_fs $syslog
# Should-Start: udev
# Should-Stop: udev
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Daemon to access a smart card using PC/SC
# Description: The PC/SC daemon is used to dynamically
# allocate/deallocate reader drivers at runtime and manage
# connections to the readers.
### END INIT INFO
# Authors:
# Carlos Prados Bocos <cprados@debian.org>
# Ludovic Rousseau <rousseau@debian.org>
# Do NOT "set -e"
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="PCSC Lite resource manager"
NAME=pcscd
DAEMON=/usr/sbin/$NAME
IPCDIR=/var/run/pcscd
PIDFILE=$IPCDIR/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# if you need to pass arguments to pcscd you should edit the file
# /etc/default/pcscd and add a line
# DAEMON_ARGS="--your-option"
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
# get LANG variable (code from /etc/init.d/keymap.sh)
ENV_FILE="none"
[ -r /etc/environment ] && ENV_FILE="/etc/environment"
[ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale"
value=$(grep -E "^[^#]*LANG=" $ENV_FILE | tail -n1 | cut -d= -f2)
eval LANG=$value
#
# Function that starts the daemon/service
#
do_start()
{
# create $IPCDIR with correct access rights
if [ ! -d $IPCDIR ]
then
rm -rf $IPCDIR
mkdir $IPCDIR
fi
chmod 0755 $IPCDIR
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
$DAEMON_ARGS \
|| return 2
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend
# on this one. As a last resort, sleep for some time.
}
#
# Function that stops the daemon/service
#
do_stop()
{
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --quiet --retry=3 --pidfile $PIDFILE --name $NAME
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
}
case "$1" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
do_start
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_stop
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
status)
status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
;;
restart|force-reload)
#
# If the "reload" option is implemented then remove the
# 'force-reload' alias
#
log_daemon_msg "Restarting $DESC" "$NAME"
do_stop
case "$?" in
0|1)
do_start
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1 ;; # Old process is still running
*) log_end_msg 1 ;; # Failed to start
esac
;;
*)
# Failed to stop
log_end_msg 1
;;
esac
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
exit 3
;;
esac
:

3
debian/pcscd.install vendored Normal file
View File

@ -0,0 +1,3 @@
usr/sbin/pcscd
usr/lib/systemd/system/pcscd.socket
usr/lib/systemd/system/pcscd.service

1
debian/pcscd.maintscript vendored Normal file
View File

@ -0,0 +1 @@
rm_conffile /etc/reader.conf.d/0comments 1.9.3-2~ pcscd

2
debian/pcscd.manpages vendored Normal file
View File

@ -0,0 +1,2 @@
debian/tmp/usr/share/man/man8/pcscd.8
debian/tmp/usr/share/man/man5/reader.conf.5

28
debian/rules vendored Executable file
View File

@ -0,0 +1,28 @@
#!/usr/bin/make -f
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq ($(DEB_HOST_ARCH_OS),hurd)
EXTRA_CONFIGURE_ARGS += --disable-usb
endif
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(EXTRA_CONFIGURE_ARGS) \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--enable-usbdropdir=/usr/lib/pcsc/drivers \
--enable-ipcdir=/run/pcscd \
$(shell dpkg-buildflags --export=configure)
ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes) $(DEB_HOST_ARCH), yes i386)
skip_packages = -Npcscd
endif
override_dh_builddeb:
dh_builddeb ${skip_packages}
override_dh_gencontrol:
dh_gencontrol ${skip_packages}

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

5
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1,5 @@
Name: pcsc-lite
Repository-Browse: https://salsa.debian.org/rousseau/PCSC
Repository: https://salsa.debian.org/rousseau/PCSC.git
Bug-Database: https://salsa.debian.org/rousseau/PCSC/issues
Bug-Submit: https://salsa.debian.org/rousseau/PCSC/issues/new

63
debian/upstream/signing-key.asc vendored Normal file
View File

@ -0,0 +1,63 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
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
=rjKU
-----END PGP PUBLIC KEY BLOCK-----

4
debian/watch vendored Normal file
View File

@ -0,0 +1,4 @@
version=4
opts=pgpsigurlmangle=s/$/.asc/ \
https://pcsclite.apdu.fr/files/ \
pcsc-lite-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz))

View File

@ -77,7 +77,7 @@ files to detect added or removed non-USB readers (serial or PCMCIA).
.BR \-x ", " \-\-auto\-exit
pcscd will quit after 60 seconds of inactivity after the release of
the last PC/SC context. This is used when pcscd
os started on demand by systemd.
is started on demand by systemd.
.TP
.BR \-S ", " \-\-reader\-name\-no\-serial
Do not include the USB serial number in the reader name.
@ -90,7 +90,7 @@ coordinates communications with smart card readers and smart cards and
cryptographic tokens that are connected to the system.
.PP
It allows applications to access smart cards and readers using the
winscard API but without knowing details of the card or reader.
WinSCard API but without knowing details of the card or reader.
.PP
pcscd coordinates the loading of drivers for card readers.
.
@ -125,7 +125,6 @@ file.
: directory containing bundles for USB drivers
.
.SH "SEE ALSO"
.BR bundleTool (8),
.BR reader.conf (5),
.BR syslog (3)
.

View File

@ -92,9 +92,11 @@ enum {
#define Log2(priority, fmt, data) do {(void)priority; } while(0)
#define Log3(priority, fmt, data1, data2) do {int p = priority; (void)p; } while(0)
#define Log4(priority, fmt, data1, data2, data3) do { } while(0)
#define LogRv4(priority, rv, fmt, data1, data2) do { } while(0)
#define Log5(priority, fmt, data1, data2, data3, data4) do { } while(0)
#define Log9(priority, fmt, data1, data2, data3, data4, data5, data6, data7, data8) do { } while(0)
#define LogXxd(priority, msg, buffer, size) do { } while(0)
#define rv2text(rv) ""
#define DebugLogA(a)
#define DebugLogB(a, b)
@ -107,9 +109,11 @@ enum {
#define Log2(priority, fmt, data) log_msg(priority, "%s:%d:%s() " fmt, __FILE__, __LINE__, __FUNCTION__, data)
#define Log3(priority, fmt, data1, data2) log_msg(priority, "%s:%d:%s() " fmt, __FILE__, __LINE__, __FUNCTION__, data1, data2)
#define Log4(priority, fmt, data1, data2, data3) log_msg(priority, "%s:%d:%s() " fmt, __FILE__, __LINE__, __FUNCTION__, data1, data2, data3)
#define LogRv4(priority, rv, fmt, data1, data2) log_msg_rv(priority, rv, "%s:%d:%s() " fmt, __FILE__, __LINE__, __FUNCTION__, data1, data2)
#define Log5(priority, fmt, data1, data2, data3, data4) log_msg(priority, "%s:%d:%s() " fmt, __FILE__, __LINE__, __FUNCTION__, data1, data2, data3, data4)
#define Log9(priority, fmt, data1, data2, data3, data4, data5, data6, data7, data8) log_msg(priority, "%s:%d:%s() " fmt, __FILE__, __LINE__, __FUNCTION__, data1, data2, data3, data4, data5, data6, data7, data8)
#define LogXxd(priority, msg, buffer, size) log_xxd(priority, msg, buffer, size)
const char * rv2text(unsigned int rv);
#define DebugLogA(a) Log1(PCSC_LOG_INFO, a)
#define DebugLogB(a, b) Log2(PCSC_LOG_INFO, a, b)
@ -117,6 +121,9 @@ enum {
#endif /* NO_LOG */
PCSC_API void log_msg_rv(const int priority, unsigned int rv, const char *fmt, ...)
__attribute__((format(printf, 3, 4)));
PCSC_API void log_msg(const int priority, const char *fmt, ...)
__attribute__((format(printf, 2, 3)));

View File

@ -110,7 +110,27 @@ static char LogLevel = PCSC_LOG_ERROR;
static signed char LogDoColor = 0; /**< no color by default */
static void log_line(const int priority, const char *DebugBuffer);
static void log_line(const int priority, const char *DebugBuffer,
unsigned int rv);
/*
* log a message with the RV value returned by the daemon
*/
void log_msg_rv(const int priority, unsigned int rv, const char *fmt, ...)
{
char DebugBuffer[DEBUG_BUF_SIZE];
va_list argptr;
if ((priority < LogLevel) /* log priority lower than threshold? */
|| (DEBUGLOG_NO_DEBUG == LogMsgType))
return;
va_start(argptr, fmt);
vsnprintf(DebugBuffer, sizeof DebugBuffer, fmt, argptr);
va_end(argptr);
log_line(priority, DebugBuffer, rv);
}
void log_msg(const int priority, const char *fmt, ...)
{
@ -125,10 +145,62 @@ void log_msg(const int priority, const char *fmt, ...)
vsnprintf(DebugBuffer, sizeof DebugBuffer, fmt, argptr);
va_end(argptr);
log_line(priority, DebugBuffer);
log_line(priority, DebugBuffer, -1);
} /* log_msg */
static void log_line(const int priority, const char *DebugBuffer)
/* convert from integer rv value to a string value
* SCARD_S_SUCCESS -> "SCARD_S_SUCCESS"
*/
const char * rv2text(unsigned int rv)
{
const char *rv_text = NULL;
static __thread char strError[30];
#define CASE(x) \
case x: \
rv_text = "rv=" #x; \
break
if (rv != (unsigned int)-1)
{
switch (rv)
{
CASE(SCARD_S_SUCCESS);
CASE(SCARD_E_CANCELLED);
CASE(SCARD_E_INSUFFICIENT_BUFFER);
CASE(SCARD_E_INVALID_HANDLE);
CASE(SCARD_E_INVALID_PARAMETER);
CASE(SCARD_E_INVALID_VALUE);
CASE(SCARD_E_NO_MEMORY);
CASE(SCARD_E_NO_SERVICE);
CASE(SCARD_E_NO_SMARTCARD);
CASE(SCARD_E_NOT_TRANSACTED);
CASE(SCARD_E_PROTO_MISMATCH);
CASE(SCARD_E_READER_UNAVAILABLE);
CASE(SCARD_E_SHARING_VIOLATION);
CASE(SCARD_E_TIMEOUT);
CASE(SCARD_E_UNKNOWN_READER);
CASE(SCARD_E_UNSUPPORTED_FEATURE);
CASE(SCARD_F_COMM_ERROR);
CASE(SCARD_F_INTERNAL_ERROR);
CASE(SCARD_W_REMOVED_CARD);
CASE(SCARD_W_RESET_CARD);
CASE(SCARD_W_UNPOWERED_CARD);
CASE(SCARD_W_UNRESPONSIVE_CARD);
CASE(SCARD_E_NO_READERS_AVAILABLE);
default:
(void)snprintf(strError, sizeof(strError)-1,
"Unknown error: 0x%08X", rv);
rv_text = strError;
}
}
return rv_text;
}
static void log_line(const int priority, const char *DebugBuffer,
unsigned int rv)
{
if (DEBUGLOG_SYSLOG_DEBUG == LogMsgType)
syslog(LOG_INFO, "%s", DebugBuffer);
@ -139,6 +211,7 @@ static void log_line(const int priority, const char *DebugBuffer)
struct timeval tmp;
int delta;
pthread_t thread_id;
const char *rv_text = NULL;
gettimeofday(&new_time, NULL);
if (0 == last_time.tv_sec)
@ -160,6 +233,8 @@ static void log_line(const int priority, const char *DebugBuffer)
thread_id = pthread_self();
rv_text = rv2text(rv);
if (LogDoColor)
{
const char *color_pfx = "", *color_sfx = "\33[0m";
@ -190,13 +265,31 @@ static void log_line(const int priority, const char *DebugBuffer)
#else
#define THREAD_FORMAT "%lu"
#endif
printf("%s%.8d%s [" THREAD_FORMAT "] %s%s%s\n",
time_pfx, delta, time_sfx, thread_id,
color_pfx, DebugBuffer, color_sfx);
if (rv_text)
{
const char * rv_pfx = "", * rv_sfx = "";
if (rv != SCARD_S_SUCCESS)
{
rv_pfx = "\33[31m"; /* Red */
rv_sfx = "\33[0m";
}
printf("%s%.8d%s [" THREAD_FORMAT "] %s%s%s, %s%s%s\n",
time_pfx, delta, time_sfx, thread_id,
color_pfx, DebugBuffer, color_sfx,
rv_pfx, rv_text, rv_sfx);
}
else
printf("%s%.8d%s [" THREAD_FORMAT "] %s%s%s\n",
time_pfx, delta, time_sfx, thread_id,
color_pfx, DebugBuffer, color_sfx);
}
else
{
printf("%.8d %s\n", delta, DebugBuffer);
if (rv_text)
printf("%.8d %s, %s\n", delta, DebugBuffer, rv_text);
else
printf("%.8d %s\n", delta, DebugBuffer);
}
fflush(stdout);
}
@ -220,7 +313,7 @@ static void log_xxd_always(const int priority, const char *msg,
c += 3;
}
log_line(priority, DebugBuffer);
log_line(priority, DebugBuffer, -1);
} /* log_xxd_always */
void log_xxd(const int priority, const char *msg, const unsigned char *buffer,

View File

@ -213,7 +213,9 @@ PCSC_API const char* pcsc_stringify_error(const LONG pcscError)
case SCARD_W_REMOVED_CARD:
msg = "Card was removed.";
break;
/* case SCARD_W_SECURITY_VIOLATION: */
case SCARD_W_SECURITY_VIOLATION:
msg = "Access denied.";
break;
/* case SCARD_W_WRONG_CHV: */
/* case SCARD_W_CHV_BLOCKED: */
/* case SCARD_W_EOF: */

View File

@ -302,7 +302,7 @@ static void * EHStatusHandlerThread(READER_CONTEXT * rContext)
readerState = SCARD_PRESENT | SCARD_SWALLOWED;
RFSetPowerState(rContext, POWER_STATE_UNPOWERED);
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_UNPOWERED");
Log3(PCSC_LOG_ERROR, "Error powering up card: %ld 0x%04lX", rv, rv);
Log2(PCSC_LOG_ERROR, "Error powering up card: %s", rv2text(rv));
}
#endif

View File

@ -57,8 +57,6 @@
#define PCSC_MAX_CONTEXT_CARD_HANDLES 200
#define PCSC_MAX_READER_HANDLES 200
#define PCSCLITE_STATUS_WAIT 200000 /**< Status Change Sleep */
/** Different values for struct ReaderContext powerState field */
enum
{

View File

@ -1395,7 +1395,7 @@ void RFCleanupReaders(void)
REMOVE_READER_NO_FLAG);
if (rv != SCARD_S_SUCCESS)
Log2(PCSC_LOG_ERROR, "RFRemoveReader error: 0x%08lX", rv);
Log2(PCSC_LOG_ERROR, "RFRemoveReader error: %s", rv2text(rv));
}
free(sReadersContexts[i]);

View File

@ -590,9 +590,13 @@ PCSC_API p_SCardTransmit(SCardTransmit)
Enter();
spy_long(hCard);
spy_long(pioSendPci->dwProtocol);
spy_long(pioSendPci->cbPciLength);
spy_buffer(pbSendBuffer, cbSendLength);
rv = spy.SCardTransmit(hCard, pioSendPci, pbSendBuffer, cbSendLength,
pioRecvPci, pbRecvBuffer, pcbRecvLength);
spy_long(pioRecvPci->dwProtocol);
spy_long(pioRecvPci->cbPciLength);
if (pcbRecvLength)
spy_buffer(pbRecvBuffer, *pcbRecvLength);
else

View File

@ -219,6 +219,20 @@ class PCSCspy(object):
else:
self.log_in("hCard: %s" % hCard)
def log_in_scard_io_request(self):
""" log SCARD_IO_REQUEST IN parameter """
dwProtocol = self.get_line()
if self.diffable:
self.log_in("pioSendPci.dwProtocol: 0x????")
else:
self.log_in("pioSendPci.dwProtocol: %s" % dwProtocol)
cbPciLength = self.get_line()
if self.diffable:
self.log_in("pioSendPci.cbPciLength: 0x????")
else:
self.log_in("pioSendPci.cbPciLength: %s" % cbPciLength)
def log_in_hContext(self):
""" log hContext IN parameter """
hContext = self.get_line()
@ -289,6 +303,20 @@ class PCSCspy(object):
self.log_in("dwPreferredProtocols: %s (%s)" % (dwPreferredProtocols,
", ".join(PreferredProtocols)))
def log_out_scard_io_request(self):
""" log SCARD_IO_REQUEST OUT parameter """
dwProtocol = self.get_line()
if self.diffable:
self.log_out("pioRecvPci.dwProtocol: 0x????")
else:
self.log_out("pioRecvPci.dwProtocol: %s" % dwProtocol)
cbPciLength = self.get_line()
if self.diffable:
self.log_out("pioRecvPci.cbPciLength: 0x????")
else:
self.log_out("pioRecvPci.cbPciLength: %s" % cbPciLength)
def log_out_dwActiveProtocol(self):
""" log dwActiveProtocol OUT parameter """
dwActiveProtocol = self.get_line()
@ -510,8 +538,10 @@ class PCSCspy(object):
""" SCardTransmit """
self.log_name("SCardTransmit")
self.log_in_hCard()
self.log_in_scard_io_request()
self.log_in2("bSendLength")
self.log_buffer("bSendBuffer", "in")
self.log_out_scard_io_request()
self.log_out2("bRecvLength")
self.log_buffer("bRecvBuffer", "out")
self._log_rv()

View File

@ -335,8 +335,8 @@ LONG SCardConnect(/*@unused@*/ SCARDCONTEXT hContext, LPCSTR szReader,
rContext->readerState->cardAtrLength);
}
else
Log3(PCSC_LOG_ERROR, "Error powering up card: %ld 0x%04lX",
rv, rv);
Log2(PCSC_LOG_ERROR, "Error powering up card: %s",
rv2text(rv));
}
if (! (rContext->readerState->readerState & SCARD_POWERED))
@ -840,6 +840,9 @@ LONG SCardDisconnect(SCARDHANDLE hCard, DWORD dwDisposition)
/* get rContext corresponding to hCard */
rv = RFReaderInfoById(hCard, &rContext);
/* ignore reader removal */
if (SCARD_E_INVALID_VALUE == rv || SCARD_E_READER_UNAVAILABLE == rv)
return SCARD_S_SUCCESS;
if (rv != SCARD_S_SUCCESS)
return rv;
@ -924,8 +927,8 @@ LONG SCardDisconnect(SCARDHANDLE hCard, DWORD dwDisposition)
else
{
if (SCARD_UNPOWER_CARD == dwDisposition)
Log3(PCSC_LOG_ERROR, "Error powering down card: %ld 0x%04lX",
rv, rv);
Log2(PCSC_LOG_ERROR, "Error powering down card: %s",
rv2text(rv));
else
{
rContext->readerState->cardAtrLength = 0;
@ -1077,7 +1080,7 @@ LONG SCardBeginTransaction(SCARDHANDLE hCard)
if (SCARD_E_SHARING_VIOLATION == rv)
(void)SYS_USleep(PCSCLITE_LOCK_POLL_RATE);
Log2(PCSC_LOG_DEBUG, "Status: 0x%08lX", rv);
Log2(PCSC_LOG_DEBUG, "Status: %s", rv2text(rv));
exit:
UNREF_READER(rContext)
@ -1229,7 +1232,7 @@ LONG SCardEndTransaction(SCARDHANDLE hCard, DWORD dwDisposition)
if (rv == SCARD_S_SUCCESS)
rv = rv2;
Log2(PCSC_LOG_DEBUG, "Status: 0x%08lX", rv);
Log2(PCSC_LOG_DEBUG, "Status: %s", rv2text(rv));
exit:
UNREF_READER(rContext)
@ -1615,7 +1618,7 @@ LONG SCardTransmit(SCARDHANDLE hCard, const SCARD_IO_REQUEST *pioSendPci,
if (rv != SCARD_S_SUCCESS)
{
*pcbRecvLength = 0;
Log2(PCSC_LOG_ERROR, "Card not transacted: 0x%08lX", rv);
Log2(PCSC_LOG_ERROR, "Card not transacted: %s", rv2text(rv));
if (SCARD_E_NO_SMARTCARD == rv)
{

View File

@ -134,9 +134,6 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//#define DO_PROFILE
/** used for backward compatibility */
#define SCARD_PROTOCOL_ANY_OLD 0x1000
#ifndef TRUE
#define TRUE 1
#define FALSE 0
@ -530,6 +527,7 @@ DESTRUCTOR static void destructor(void)
* @retval SCARD_E_NO_SERVICE The server is not running (\ref SCARD_E_NO_SERVICE)
* @retval SCARD_F_COMM_ERROR An internal communications error has been detected (\ref SCARD_F_COMM_ERROR)
* @retval SCARD_F_INTERNAL_ERROR An internal consistency check failed (\ref SCARD_F_INTERNAL_ERROR)
* @retval SCARD_W_SECURITY_VIOLATION Access was denied by the daemon (Polkit issue?). (\ref SCARD_W_SECURITY_VIOLATION)
*/
static LONG SCardEstablishContextTH(DWORD dwScope,
/*@unused@*/ LPCVOID pvReserved1,
@ -609,7 +607,6 @@ static LONG SCardEstablishContextTH(DWORD dwScope,
{
Log1(PCSC_LOG_CRITICAL,
"Your pcscd is too old and does not support CMD_VERSION");
rv = SCARD_F_COMM_ERROR;
goto cleanup;
}

View File

@ -506,7 +506,11 @@ INTERNAL LONG MessageReceive(void *buffer_void, uint64_t buffer_size,
* other errors are fatal */
if (errno != EINTR && errno != EAGAIN)
{
retval = SCARD_F_COMM_ERROR;
/* connection reseted by pcscd? */
if (ECONNRESET == errno)
retval = SCARD_W_SECURITY_VIOLATION;
else
retval = SCARD_F_COMM_ERROR;
break;
}
}

View File

@ -321,7 +321,7 @@ static const char *CommandsText[] = {
WRITE_BODY_WITH_COMMAND(CommandsText[header.command], v)
#define WRITE_BODY_WITH_COMMAND(command, v) \
do { \
Log4(PCSC_LOG_DEBUG, "%s rv=0x%X for client %d", command, v.rv, filedes); \
LogRv4(PCSC_LOG_DEBUG, v.rv, "%s for client %d", command, filedes); \
ret = MessageSend(&v, sizeof(v), filedes); \
} while (0)
@ -886,47 +886,53 @@ static LONG MSGRemoveContext(SCARDCONTEXT hContext, SCONTEXT * threadContext)
hCard = *(int32_t *)ptr;
/*
* Unlock the sharing
* Unlock the sharing. If the reader or handle already
* disappeared, skip the disconnection part and just delete the
* orphan handle.
*/
rv = RFReaderInfoById(hCard, &rContext);
if (rv != SCARD_S_SUCCESS)
if (rv != SCARD_S_SUCCESS && rv != SCARD_E_INVALID_VALUE
&& rv != SCARD_E_READER_UNAVAILABLE)
{
(void)pthread_mutex_unlock(&threadContext->cardsList_lock);
return rv;
}
if (0 == rContext->hLockId)
if (rContext)
{
/* no lock. Just leave the card */
(void)SCardDisconnect(hCard, SCARD_LEAVE_CARD);
}
else
{
if (hCard != rContext->hLockId)
if (0 == rContext->hLockId)
{
/*
* if the card is locked by someone else we do not reset it
*/
/* decrement card use */
/* no lock. Just leave the card */
(void)SCardDisconnect(hCard, SCARD_LEAVE_CARD);
}
else
{
/* release the lock */
rContext->hLockId = 0;
if (hCard != rContext->hLockId)
{
/*
* if the card is locked by someone else we do not reset it
*/
/*
* We will use SCardStatus to see if the card has been
* reset there is no need to reset each time
* Disconnect is called
*/
rv = SCardStatus(hCard, NULL, NULL, NULL, NULL, NULL, NULL);
if (rv == SCARD_W_RESET_CARD || rv == SCARD_W_REMOVED_CARD)
/* decrement card use */
(void)SCardDisconnect(hCard, SCARD_LEAVE_CARD);
}
else
(void)SCardDisconnect(hCard, SCARD_RESET_CARD);
{
/* release the lock */
rContext->hLockId = 0;
/*
* We will use SCardStatus to see if the card has been
* reset there is no need to reset each time
* Disconnect is called
*/
rv = SCardStatus(hCard, NULL, NULL, NULL, NULL, NULL, NULL);
if (rv == SCARD_W_RESET_CARD || rv == SCARD_W_REMOVED_CARD)
(void)SCardDisconnect(hCard, SCARD_LEAVE_CARD);
else
(void)SCardDisconnect(hCard, SCARD_RESET_CARD);
}
}
}
@ -936,7 +942,9 @@ static LONG MSGRemoveContext(SCARDCONTEXT hContext, SCONTEXT * threadContext)
Log2(PCSC_LOG_CRITICAL,
"list_delete_at failed with return value: %d", lrv);
UNREF_READER(rContext)
if (rContext) {
UNREF_READER(rContext)
}
}
(void)pthread_mutex_unlock(&threadContext->cardsList_lock);