Commit Graph

22 Commits

Author SHA1 Message Date
Lee Chee Yang 44b0037309 opensc: fix CVE-2023-2977
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-22 07:36:16 -07:00
Jan Luebbe cc5082d5d1 opensc: fix private key import
Importing private keys into a PKCS#11 token is broken with OpenSC 0.23.0
and OpenSSL 3. Fix it by backporting the corresponding upstream fixes.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-02 10:25:33 -08:00
Jan Luebbe c3e6365aea opensc: fix homepage URL
The opensc-project.org domain has not been active for a long time [1],
so use the current wiki (which is also linked from the projects GitHub
landing page).

[1] https://opensc-devel.narkive.com/48b09iig/www-opensc-project-org

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
Wang Mingyu 918739de58 opensc: upgrade 0.22.0 -> 0.23.0
Changelog:
============
 Support signing of data with a length of more than 512 bytes (#2314)
 By default, disable support for old card drivers (#2391) and remove support for old drivers MioCOS and JCOP (#2374)
 Bump minimal required OpenSSL version to 1.1.1 and add support for OpenSSL 3.0 (#2438, #2506)
 Compatibility with LibreSSL (#2495, #2595)
 Remove support for DSA (#2503)
 Extend p11test to support symmetric keys (#2430)
 Notice detached reader on macOS (#2418)
 Support for OAEP padding (#2475, #2484)
 Fix for PSS salt length (#2478)
 Improve fuzzing by adding new tests (#2417, #2500, #2520, #2550, #2637)
 Fixed various issues reported by OSS-Fuzz and Coverity regarding card drivers, PKCS#11 and PKCS#15 init
 Fix issues with OpenPACE (#2472)
 Containers support for local testing
 Add support for encryption and decryption using symmetric keys (#2473, #2607)
 Stop building support for Gost algorithms with OpenSSL 3.0 as they require deprecated API (#2586)
 Fix detection of disconnected readers in PCSC (#2600)
 Add configuration option for on-disk caching of private data (#2588)
 Skip building empty binaries when dependencies are missing and remove needless linking (#2617)
 Define arm64 as a supported architecture in the Installer package (#2610)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-05 09:16:24 -08: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
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Alexander Kanavin c61044d58e opensc: do not use -Werror
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-14 07:16:58 -07:00
wangmy 6a0c9ea9d3 opensc: upgrade 0.21.0 -> 0.22.0
Use standard paths for file cache on Linux and OSX
Various issues of memory/buffer handling in legacy drivers mostly
reported by oss-fuzz and coverity (tcos, oberthur, isoapplet, iasecc,
westcos, gpk, flex, dnie, mcrd, authentic, belpic)
Add threading test to pkcs11-tool
Add support to generate generic secret keys
opensc-explorer: Print information about LCS (Life cycle status byte)
Add support for Apple's arm64 (M1) binaries, removed TokenD.
A seperate installer with TokenD (and without arm64 binaries) will be available.
Support for gcc11 and its new strict aliasing rules
Initial support for building with OpenSSL 3.0
pkcs15-tool: Write data objects in binary mode
Avoid limited size of log messages

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-23 22:00:39 -07: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
Zheng Ruoqin c3f59819a7 opensc: Fix the wrong version number.
The corresponding version number of commit 30180986a08cf71fe4af4b50251a8bb5b1ab95af is 0.21.0.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-12 00:54:53 -08:00
Zang Ruochen 1df71a454c opensc: upgrade 0.20.0 -> 0.20.1
-License-Update: The address is updated as follows
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-12-03 22:32:56 -08:00
Khem Raj 8bb1fabfc5 opensc: Upgrade to 0.20.0
Drop all patches as they are already included in 0.20.0 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-17 15:44:06 -08:00
Khem Raj bbb5732a4f opensc: Fix misaligned indentation
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-28 00:11:47 -08:00
Laurent Bonnans 40b3a51231 opensc: fix RDEPENDS in pcsc PACKAGECONFIG
OpenSC depends on pcsc-lite's systemd service and pkcs11 library at
runtime.

Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-05 23:01:06 -08:00
Jan Luebbe 8edd760e66 opensc: add support for native builds
This is needed as a dependency when using SoftHSM from the PKCS#11
OpenSSL engine for code singing.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-22 09:22:47 -08:00
Jan Luebbe 060ad325b6 opensc: use pcsc-lite instead of openct by default
OpenCT upstream maintenance seems to have stopped and OpenSC upstream
uses pcsc-lite by default in their configure script. Add PACKAGECONFIGs
for each and select pcsc by default.

As the openct package depends on pcsc-lite by itself, this avoids an
unnecessary package in the default case.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-22 09:22:47 -08:00
Khem Raj c011beeaa6 opensc: Upgrade to 0.19.0
Switch fetcher to use github
Add patch to build with gcc9
Remove upstreamed patch
Inherit bash-completion

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-18 22:15:59 -08:00
Armin Kuster c26b10b155 opensc: 0.18.0 version fix fetch error
ERROR: opensc-0.18.0-r0 do_fetch: Fetcher failure for URL: 'http://ftp.debian.org/debian/pool/main/o/opensc/opensc_0.18.0.orig.tar.gz'. Unable to fetch URL from any source.

This version is no longer hosted on the main debian URL so
use the archive URL

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-16 14:46:44 -08:00
Khem Raj 79d66aea14 opensc: Upgrade to 0.18.0
* Fixes build with OpenSSL 1.1.x
* Fix build with gcc8

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-08 13:32:12 -07:00
Derek Straka 7d12dd413f opensc: update to version 0.16.0
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-22 15:49:25 +02:00
Li xin 9d2fc54c80 opensc: upgrade 0.14.0 -> 0.15.0
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-30 21:22:24 +02:00
Li xin 9b15b32690 opensc: add new recipe
OpenSC provides a set of libraries and utilities to work with smart cards.
Its main focus is on cards that support cryptographic operations, and
facilitate their use in security applications such as authentication,
mail encryption and digital signatures.

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-02-12 19:37:20 +01:00