33 Commits

Author SHA1 Message Date
Wang Mingyu 3de9dd7c49 pcsc-lite: upgrade 2.0.1 -> 2.0.3
Changelog:
==========
- add SCARD_E_UNKNOWN_RES_MNG back
- SCardConnect() & SCardReconnect(): restrict the protocol used
- negotiate PTS also for the backup protocol
- pcscd.8:
  . document --disable-polkit
  . add "CONFIGURATION FILE" section
- Some other minor improvements

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-20 09:28:06 -07:00
alperak 695bdeebb0 pcsc-lite: upgrade 2.0.0 -> 2.0.1
Changelog:

- SCardConnect(): return SCARD_W_SECURITY_VIOLATION when needed (polkit)
- SCardCancel(): return SCARD_S_SUCCESS even if the client already finished
- polkit is enabled by default
- libpcscspy: fix a crash with NULL pointers
- Doxygen: fix SCardBeginTransaction() documentation
- fix pcscd internal thread safety issues (clang -fsanitize=thread)
- Some other minor improvements

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-08 19:54:39 -08:00
Wang Mingyu 8ed3dea40b pcsc-lite: upgrade 1.9.9 -> 2.0.0
Changelog:
============
- Adjust USB drivers path at run-time via environment variable PCSCLITE_HP_DROPDIR
- Add '--disable-polkit' option
- Reset eventCounter when a reader is removed
- Add "polkit" in "pcscd -v" output if enabled
- Doxygen: document SCARD_E_INVALID_VALUE for some functions
- use secure_getenv(3) if available
- Some other minor improvements

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-14 09:41:35 -07:00
Jan Luebbe eda6fd9a03 pcsc-lite: fix homepage URL
pcsclite.alioth.debian.org is not resolvable, so use the URL indicated
in the README.md file.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-25 08:57:42 -08:00
Jan Luebbe a00a2d1040 pcsc-lite: fix native build
The native build fails during configure with:
  checking for flex... no
  checking for lex... no
  configure: error: no lex or flex found

Add flex-native to DEPENDS to provide it.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-25 08:51:25 -08:00
Wang Mingyu 4e0aebdaa7 pcsc-lite: upgrade 1.9.8 -> 1.9.9
Changelog:
==========
- 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

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-28 11:32:26 -08:00
Julian Haller 1a71d99fef pcsc-lite: upgrade 1.9.0 -> 1.9.8
The python3 related patch is no longer due to similar changes in the
project. This also requires changing the RDEPENDS to python3-core to
avoid package QA warnings.

Signed-off-by: Julian Haller <julian.haller@philips.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-06 09:12:14 -07:00
Khem Raj 14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Ross Burton 2755ba786a pcsc-lite: set precise BSD license
"BSD" is ambiguous, use the precise license BSD-3-Clause.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-18 11:07:10 -08:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Roland Hieber fb5e3d44d0 pcsc-lite: provide pcsc-lite-lib-native explicitly for native build
Commits e2180b00b3 and 8edd760e66 added support for
native builds for the opensc and pcsc-lite recipes, but building
opensc-native fails after commit 40b3a51231 (2019-12-04,
"opensc: fix RDEPENDS in pcsc PACKAGECONFIG") with:

    ERROR: Required build target 'opensc-native' has no buildable providers.
    Missing or unbuildable dependency chain was: ['opensc-native', 'pcsc-lite-lib-native']

The commit in question is correct for target builds, but native builds
don't have packages, therefore there is no pcsc-lite-lib-native package
to depend on – the -lib part is also provided in pcsc-lite-native.

Ideally we would fix this in the opensc recipe. However, using syntax
like "PACKAGECONFIG_class-native[pcsc]" in the opensc recipe is
apparently not possible to overwrite the dependency for a native build,
and using RDEPENDS_remove has no effect either – apparently dependencies
from PACKAGECONFIG are added after RDEPENDS_remove is evaluated.
Therefore let pcsc-lite provide the missing package name for native
builds, even if fixing this unrelated package is not the most elegant
solution.

Fixes: 40b3a51231 (2019-12-04, "opensc: fix RDEPENDS in pcsc PACKAGECONFIG")
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-12-01 14:56:49 -08:00
Ricardo Salveti 84ba361cfc pcsc-lite: upgrade 1.8.26 -> 1.9.0
Changelog:
- 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

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-17 17:46:33 -07:00
Khem Raj 59e3d74810 recipes: Inherit perlnative for pod2man
replace host version of pod2man perl-native provides, helps in
improving reproducability

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-02 22:16:25 -08:00
Andrey Zhizhikin 4933ca5457 pcsc-lite: update recipe to use python3
Update pcsc-lite recipe to target python3 since python2 is EOL and has
been dropped from OE-Core.

Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-27 13:10:31 -08:00
Zang Ruochen 8238ea0657 pcsc-lite: upgrade 1.8.25 -> 1.8.26
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-16 22:33:46 -08:00
Jan Luebbe e2180b00b3 pcsc-lite: add support for native builds
This is needed as a dependency when using SoftHSM from the PKCS#11
OpenSSL engine for code singing.

Add a udev PACKAGECONFIG, as this is only useful on the target. Also
don't RRECOMMEND ccid for the native variant.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-22 09:22:43 -08:00
Oleksandr Kravchuk 80f6f1d829 pcsc-lite: update to 1.8.25
License checksum was changed due to removed license info about remove
code (see @0984e0f4a03e5e29bb5725b6f149f56c9e9c73c2).

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-20 10:58:26 -07:00
Martin Jansa e15f5c08aa pcsc-lite: fix SRC_URI
* alioth.debian.org is down
  Connecting to alioth.debian.org (alioth.debian.org)|5.153.231.21|:443... failed: No route to host.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-02 12:56:23 -07:00
Huang Qiyu 6bf7b85db3 pcsc-lite: Update to 1.8.22
1) Upgrade pcsc-lite from 1.8.13 to 1.8.22.

2) License information has changed in pcsc-lite-1.8.22/COPYING  for src/strlcpy.3, src/strlcat.c and src/strlcpy.c have been removed in pcsc-lite-1.8.22, so modify the LIC_FILES_CHKSUM.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-28 11:06:02 +02:00
Davis, Michael 54c7e784c7 pcsc-lite: Seperate GPLV3 portions from BSD
GPLV3 and BSD portions were originally placed in the same package.
The GPLv3 portion has been seperated into pcsc-lite-spy and
pcsc-lite-spy-dev so the package can be used with GPLv3 blacklisted.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-10-21 18:20:44 +02:00
Li xin ae8dc15ef6 pcsc-lite: upgrade 1.8.6 -> 1.8.13
* Remove PR
* Modify chksum of COYING,since the explain of GPLv3+ is added,
but the LICENSE has not been changed.

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-24 13:54:02 +02:00
Armin Kuster d220d79189 pscs-lite: Fix QA warnings
WARNING: QA Issue: pcsc-lite requires /usr/bin/python, but no providers in its RDEPENDS [file-rdeps]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-11 10:57:10 +02:00
leimaohui 2080f15e86 pcsc-lite_1.8.6: Modified the license for libpcscspy.
Because the license of libpcscspy.c is GPLv3+.
So modified the license of pcsc-lite-dev.

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-24 15:11:37 +02:00
Richard Purdie d04099e94b recipes: Add missing pkgconfig dependencies
These recipes were all missing pkgconfig dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-15 14:53:55 +02:00
Matthieu CRAPET c95e155780 recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues
Changes:
- rename SUMMARY with length > 80 to DESCRIPTION
- rename DESCRIPTION with length < 80 to (non present tag) SUMMARY
- drop final point character at the end of SUMMARY string
- remove trailing whitespace of SUMMARY line

Note: don't bump PR

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-02-23 23:20:02 +01:00
David Nyström 995cc1eb44 pcsc-lite: Fixed broken URL
Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-01-01 22:34:35 +01:00
Martin Jansa a45830a39b recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python
  tasks).
* Some recipes were using tabs.
* Some were using 8 spaces.
* Some were using mix or different number of spaces.
* Make them consistently use 4 spaces everywhere.
* Yocto styleguide advises to use tabs (but the only reason to keep
  tabs is the need to update a lot of recipes). Lately this advice
  was also merged into the styleguide on the OE wiki.
* Using 4 spaces in both types of tasks is better because it's less
  error prone when someone is not sure if e.g.
  do_generate_toolchain_file() is Python or shell task and also allows
  to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
  potentially bad (shouldn't be used for indenting of multiline
  variable assignments and cannot be used for Python tasks).
* Don't indent closing quote on multiline variables
  we're quite inconsistent wheater it's first character on line
  under opening quote or under first non-whitespace character in
  previous line.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15 16:23:17 +02:00
Martin Jansa 4f3b378e6a pcsc-lite: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-15 16:22:05 +02:00
Otavio Salvador 0c436f12d9 pcsc-lite: Update to 1.8.6
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-10-30 09:50:54 +01:00
Otavio Salvador 9c517424df pcsc-lite: ccid downgraded to a runtime recommendation
ccid adds more smart-card readers support but it is not a requirement
for pcsc-lite to work thus we change it to a recommendation instead of
a hard dependency.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-12-23 08:53:02 +01:00
Eric BENARD 62222b7775 pcsc-lite: clean recipe
we get the following log at boot :
Configuring pcsc-lite.
update-rc.d: /etc/init.d/pcscd: file does not exist

as the init script is no more nedded (autoload feature
of the daemon by the clients), we can remove the previously
unused init script and clean the recipe in order not
to have any update-rc interaction.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-12-06 16:37:26 +01:00
Otavio Salvador 06c72fc45b pcsc-lite: rdepends on ccid and drop init script
We use auto-start feature by default as it is provided by ccid and
works out of box for most use cases.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-06-02 10:04:55 +02:00
Otavio Salvador 01e28b89e6 pcsc-lite: add version 1.7.2
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-05-16 20:50:42 +02:00