Sync from SUSE:SLFO:Main libp11 revision c4769ee71e5e8b4ec03c5db6f84cb0c9

This commit is contained in:
Adrian Schröter 2024-10-01 08:46:46 +02:00
commit 30f428de5e
10 changed files with 615 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libp11-3

BIN
libp11-0.4.12.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

16
libp11-0.4.12.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEK8fk5n48wMG+py+MLvx/8NQW4BQFAmLs03oACgkQLvx/8NQW
4BRLfw//RpRc/93cRtlekgf7VwwtO+5MaO3/4umfpkb5jRXq5zOYPGjIBzzZibRS
pX1y9nnG7pDx65EdyEOM/kI8HcZp4Jkn8PQ0UqT0Ozwm1JrMfGCeRadrYvg2mQY6
5fHQ7SCub/eofeB9NNN0nHkW28B2r1Y/x728BSbuBixqq9+ZzKPzzah+VgDp+NQ1
SZ8ummmeZ+kyp3o5FOtrKjBPqo5VzWzucTiq5dH/QYeHl7YcuL/QSgpR0r+G9ei5
3tirwtxstWHMNFChquI+OLqe2++I+Cq5/Gcz9C/BKKHd00CWWRH4rZrStl8q8kM8
tIVTIH7Rcf4h4isGBl70TIOIGtxY/9IYLRhoL4aCwy0DtNKYWF5G7zSN5JN/2xvC
4CFe3Th7sEY65Z8aimwi6/wRi6lQ/sUWcQ/wUJLWL6XepMcgFLogZYgC67sidvyV
GFlZt4w8PvclfLw4wMZB6u4TkWIKu1uMl00d0rWXNaQWeYgF9aQqHMWMzi0FQzpf
J4rOcR+knBP1XvtbaAfFdm5q+HFy3HWXNsftMEGbehxy2M1sRBT9tOQv/R4pNtkP
7oWD7bKHa1kvy5qqiCB9zNQpN2LJKM/kCANQAqmQno1S8ktDYqqd08+U5966Qgis
UOs/+sOXykEMW+0NmNCA3rQ1ZZ3F9doSsaWBqzZVaEeE6WBEeWk=
=WqLA
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,25 @@
From 74497e0fa5b69b15790d6697e1ebce13af842d4c Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppym@gentoo.org>
Date: Thu, 13 Jul 2023 13:52:54 -0400
Subject: [PATCH] configure: treat all openssl-3.x releases the same
OpenSSL's soversion will not change for any 3.x minor release.
https://www.openssl.org/policies/general/versioning-policy.html
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index b96979d9..c344e84a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ AC_C_BIGENDIAN
# issues with applications linking to new openssl, old libp11, and vice versa
case "`$PKG_CONFIG --modversion --silence-errors libcrypto || \
$PKG_CONFIG --modversion openssl`" in
- 3.1.*|3.0.*) # Predicted engines directory prefix for OpenSSL 3.x
+ 3.*) # Predicted engines directory prefix for OpenSSL 3.x
LIBP11_LT_OLDEST="3"
debian_ssl_prefix="openssl-3.0.0";;
1.1.*) # Predicted engines directory prefix for OpenSSL 1.1.x

13
libp11-openssl-3.1.patch Normal file
View File

@ -0,0 +1,13 @@
Index: libp11-0.4.12/configure.ac
===================================================================
--- libp11-0.4.12.orig/configure.ac
+++ libp11-0.4.12/configure.ac
@@ -33,7 +33,7 @@ AC_C_BIGENDIAN
# issues with applications linking to new openssl, old libp11, and vice versa
case "`$PKG_CONFIG --modversion --silence-errors libcrypto || \
$PKG_CONFIG --modversion openssl`" in
- 3.0.*) # Predicted engines directory prefix for OpenSSL 3.x
+ 3.1.*|3.0.*) # Predicted engines directory prefix for OpenSSL 3.x
LIBP11_LT_OLDEST="3"
debian_ssl_prefix="openssl-3.0.0";;
1.1.*) # Predicted engines directory prefix for OpenSSL 1.1.x

2
libp11-rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
# Check is poorly written, it apparently depends on libp11-1.
addFilter("no-dependency-on")

263
libp11.changes Normal file
View File

@ -0,0 +1,263 @@
-------------------------------------------------------------------
Fri Jan 19 10:43:16 UTC 2024 - Otto Hollmann <otto.hollmann@suse.com>
- Add support for OpenSSL 3.x:
Add libp11-configure-treat-all-openssl-3.x-releases-the-same.patch
-------------------------------------------------------------------
Wed Sep 27 09:58:37 UTC 2023 - Otto Hollmann <otto.hollmann@suse.com>
- Replace openssl-ibmpkcs11 with openssl-engine-libp11 (jsc#PED-3327)
Add Obsoletes: openssl-ibmpkcs11 <= 1.0.1
and Provides: openssl-ibmpkcs11 = 1.0.1
-------------------------------------------------------------------
Tue Jun 6 12:24:11 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Add support for openSSL 3.1:
+ Add libp11-openssl-3.1.patch: handle openSSL 3.1 the same as 3.0
+ Add libtool BuildRequires and call autoreconf: abobe patch
touches the build system.
+ Add baselibs.conf
-------------------------------------------------------------------
Mon Feb 6 10:41:29 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Fix build against openSSL 3.
-------------------------------------------------------------------
Mon Oct 17 01:22:26 UTC 2022 - Jason Sikes <jsikes@suse.com>
- Update to 0.4.12:
* Fixed using an explicitly provided PIN regardless of the secure login flag (Alon Bar-Lev)
* Fixed RSA_PKCS1_PADDING handling (Michał Trojnara)
* Fixed a crash on LLP64, including 64-bit Windows (Małgorzata Olszówka)
* Fixed searching objects when both ID and label are specified (minfrin)
* Fixed the OAEP "source" parameter (S-P Chan)
* Fixed object searching by label (Michał Trojnara)
* Fixed thread safety in slot enumeration (Michał Trojnara)
* Fixed storing certificates on tokens (Mateusz Kwiatkowski)
* Fixed several memory leaks (Michał Trojnara, Jakub Jelen, Timo Teräs)
* Fixed OpenSSL 3.0 compatibility (Jakub Jelen)
* Fixed LibreSSL compatibility (orbea, patchMonkey156)
* Major concurrency improvements and refactoring (Timo Teräs)
* Added re-numeration of slots as an engine control command (Markus Koetter)
* Added the PKCS11_update_slots() API function (Timo Teräs)
* Added support for the SHA3 hash function (alegon01)
* Added a self-test for engine RSA operations (Uri Blumenthal)
-------------------------------------------------------------------
Thu Nov 26 12:00:19 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 0.4.11:
* Fixed "EVP_PKEY_derive:buffer too small" EC errors (Luka Logar)
* Fixed various memory leaks (Mateusz Kwiatkowski)
* Fixed Windows VERSIONINFO (Pavol Misik)
* Fixed builds with OpenSSL older than 1.0.2 (Michał Trojnara)
* Fixed a double free in EVP_PKEY_meth_free() (Mikhail Durnev)
* Added CKA_VALUE_LEN to EC key derivation template (Michał Trojnara)
* Fixed handling keys without label attribute (efternavn)
* Updated the tests (Anderson Toshiyuki Sasaki)
* Made ECDH-derived keys extractable (Bent Bisballe Nyeng)
* Added support for pin-source within PKCS#11 URI (Stanislav Levin)
* Improved LibreSSL compatibility (patchMonkey156)
* Fixed handling RSA private keys in BIND (Stanislav Levin)
* Added macOS testing support (Stanislav Levin)
* Fixed engine object search algorithm (Anderson Toshiyuki Sasaki)
-------------------------------------------------------------------
Tue Oct 22 04:23:31 UTC 2019 - Jason Sikes <jsikes@suse.com>
- Update to version 0.4.10:
* Added EC signing through EVP API
* Added an empty EC private key required by OpenSSL 1.1.1
* Stored additional certificate attributes
* Engine allowed to use private keys without a PIN
* Lazy binding used as a workaround for buggy modules
* MinGW build fixes and documentation
* LibreSSL 2.8.3 build fixes
* Error handling fixes
-------------------------------------------------------------------
Tue Mar 12 16:15:22 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- Add p11-kit-devel to BuildRequires (boo#1122413)
-------------------------------------------------------------------
Tue Jan 29 22:44:39 UTC 2019 - Stanislav Brabec <sbrabec@suse.com>
- Update to version 0.4.9:
* Fix EVP_PKEY ENGINE reference count with the EC
EVP_PKEY_METHOD.
* Fix a leak of RSA object in pkcs11_store_key()
* Add atfork checks for RSA and EC_KEY method
* RSA key generation on the token
* PSS signature support
* RSA-OAEP and RSA-PKCS encryption support
* Engine no longer set as default for all methods
* Add PKCS11_remove_key and PKCS11_remove_certificate
* Add PKCS11_find_next_token interface
* Add support for OpenSSL 1.1.1 beta
* Remove support for OpenSSL 0.9.8
* Case insensitive PKCS#11 URI scheme
* Testing framework improvements
* Coverity scanning and defect fixes
* Backward compatibility for new error handling introduced
in libp11 0.4.7
* Memory leak fixes
* Add an integer overflow protection
* Several bugfixes
-------------------------------------------------------------------
Wed Jan 17 11:31:42 UTC 2018 - dimstar@opensuse.org
- Conditionalize libname to libp11-2 for suse_version < 1500 (using
openssl 1.0) / libp11-3 for suse_version >= 1500 (using
openssl 1.1).
- Create baselibs.conf dynamically, since the library name can be
different. Drop the static baselibs.conf.
-------------------------------------------------------------------
Wed Jul 19 12:41:16 UTC 2017 - jengelh@inai.de
- Remove --with-pic which is only for static libs.
-------------------------------------------------------------------
Mon Jul 17 09:18:06 UTC 2017 - tchvatal@suse.com
- Version update to 0.4.7:
* Added OpenSSL-style engine error reporting (Michał Trojnara)
* Added the FORCE_LOGIN engine ctrl command (Michał Trojnara)
* Implemented the QUIET engine ctrl command (Michał Trojnara)
* Modified CKU_CONTEXT_SPECIFIC PIN requests to be based
on the CKA_ALWAYS_AUTHENTICATE attribute rather than the
CKR_USER_NOT_LOGGED_IN error (Michał Trojnara)
* Fixed printing hex values (Michał Trojnara)
* Fixed build error with OPENSSL_NO_EC (Kai Kang)
-------------------------------------------------------------------
Fri Jun 23 14:52:22 UTC 2017 - mpluskal@suse.com
- Update to verion 0.4.6
* For full list of changes since version 0.3.0 see NEWS
- Create openssl-engine-libp11 subpackage
- Add gpg signature
-------------------------------------------------------------------
Wed Dec 2 00:18:59 UTC 2015 - p.drouand@gmail.com
- Update to version 0.3.0
* Added small test suite based on softhsm (run on make check)
* Memory leak fixes
* On module initialization tell the module that the OS locking
primitives are OK to use
* Transparently handle applications that fork. That is call C_Initialize()
and reopen any handles if a fork is detected.
* Eliminated any hard coded limits for certificate size
* Added support for ECDSA
* Allow RSA_NO_PADDING padding mode in PKCS11_private_encrypt
* Eliminated several hard-coded limits in parameter sizes.
- Update project and download Urls
-------------------------------------------------------------------
Tue Sep 25 17:00:26 CEST 2012 - sbrabec@suse.cz
- Update to version 0.2.8:
* Bumped soname for PKCS11_token struct size changes.
* Display the number of available slots.
* Expose more token flags in PKCS11_token structure.
* Check that private data is not NULL in pkcs11_release_slot.
-------------------------------------------------------------------
Sun Nov 20 06:13:41 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Tue Jan 11 18:46:59 CET 2011 - sbrabec@suse.cz
- Updated to version 0.2.7:
* Ignore CKR_CRYPTOKI_ALREADY_INITIALIZED while initializing.
-------------------------------------------------------------------
Mon Feb 1 11:47:39 UTC 2010 - jengelh@medozas.de
- Package baselibs.conf
-------------------------------------------------------------------
Wed Aug 5 14:05:01 CEST 2009 - sbrabec@suse.cz
- Updated to version 0.2.6:
* Add new symbol to export file.
* Add function to export the slot id.
* Increase library version because of the new function.
-------------------------------------------------------------------
Wed Apr 8 18:44:53 CEST 2009 - sbrabec@suse.cz
- Don't call autoreconf on older products.
-------------------------------------------------------------------
Tue Sep 2 18:04:03 CEST 2008 - sbrabec@suse.cz
- Call autoreconf to build correctly with new libtool.
-------------------------------------------------------------------
Tue Sep 2 11:39:55 CEST 2008 - crrodriguez@suse.de
- fix build, doxygen required.
- kill ".la" files and static libraries
- fix -devel package requires
-------------------------------------------------------------------
Tue Aug 19 14:53:13 CEST 2008 - sbrabec@suse.cz
- Updated to version 0.2.4:
* Build system rewritten
* added PKCS11_CTX_init_args
* fix segfault in init_args code
* implemented PKCS11_private_encrypt
- Fixed incorrect API.
- Fixed x86_64 issues.
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
-------------------------------------------------------------------
Mon Jul 30 00:53:34 CEST 2007 - ro@suse.de
- provide old name
-------------------------------------------------------------------
Wed Jul 25 16:40:27 CEST 2007 - sbrabec@suse.cz
- Updated to version 0.2.3:
* update wiki export script.
* replaced rsa header files from rsalabs (official) with scute
(open source).
* allow CKR_USER_ALREADY_LOGGED_IN on C_Login.
* mark internal functions as static.
* add code to store public keys and generate keys.
- Name package according to shared library packaging policy.
-------------------------------------------------------------------
Fri Mar 30 01:45:07 CEST 2007 - ro@suse.de
- added zlib-devel to buildreq
-------------------------------------------------------------------
Tue Oct 3 17:50:13 CEST 2006 - sbrabec@suse.cz
- Updated to version 0.2.2:
* bug fixes
* code cleanup
-------------------------------------------------------------------
Fri May 12 17:17:16 CEST 2006 - sbrabec@suse.cz
- New SuSE package, version 0.2.1.

115
libp11.keyring Normal file
View File

@ -0,0 +1,115 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFTU6YwBEAC6PP7E4J6cRZQsJlFE+o3zdQYo7Mg2sVxDR6K9Cha52wn7P0t0
hHUd0CSmWyfjmYUy3/7jYjgKe4oiGzeSCVK8b3TiX3ylHi/nW3mixwpDPwFmr5Cf
ce55Ro3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cCP2Rh/jvzo7zrqQO09c8at/pFEiF8Lg
Ulc5QaB/GNhXBqJog2yOzUPGKq0OMy/wttW42TCe7V+J8fnn16xfGhnVwmiWRQaq
dCiFDY2IiOHhnRwfJVANrddfuU/AJ8vY8XXzrxI7YZL43V530Wich1VB00XLFU8a
j08FsjdFvR77AAxFU+Cd6sH6yq6jsRXppQ0BOO15aR+wopEvtKwDdRu3TaweC1XM
LLQ4XuN9Ql0bMH0d626uMG2zUfZGO1jNTOS4sUhEqJsImbsL/hgNDKYvfo0wSHPW
mQo9njw7aG8Mey77I3fL1ELj/Tfa86njPpJ/tmFMLV9ntWACcW/c3tojdcP278rT
w/4zk+Sr2Zv+3bP1yjJd0z4B3gYYz2BUYTU7dyiA41Kgk4ZfV1n2NUAxQJYzvEIA
ZcMEWA3rOTb+AjcBVXX89Gk0BEykVmA9G808tbmI+4DUd2c/+d1xeufb43TGOiwK
qwY+Os9iey3FbsnoYuzKPsd5LByJFEudbMB152h95u/NysaM0AjC+yPtlpSLUIaD
UW75VAlQKPWj1Ag5uVpc2ScMEjevQQ==
=+Od7
-----END PGP PUBLIC KEY BLOCK-----

154
libp11.spec Normal file
View File

@ -0,0 +1,154 @@
#
# spec file for package libp11
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# the libname depends on what version openssl it is linked against
%if 0%{?suse_version} < 1500
# libp11.so.2 for openssl 1.0 - suse_version < 1500
%define libname libp11-2
%else
# libp11.so.3 for openssl 1.1 - suse_version >= 1500
%define libname libp11-3
%endif
Name: libp11
Version: 0.4.12
Release: 0
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
License: LGPL-2.1-or-later
Group: Productivity/Security
URL: https://github.com/OpenSC/libp11
Source0: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: %{name}-rpmlintrc
Source4: baselibs.conf
# PATCH-FIX-UPSTREAM
Patch0: libp11-openssl-3.1.patch
# PATCH-FIX-UPSTREAM
Patch1: libp11-configure-treat-all-openssl-3.x-releases-the-same.patch
BuildRequires: fdupes
BuildRequires: libtool
BuildRequires: p11-kit-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
# The engine_pkcs11 library has been merged into version 0.4.0 and later.
# (It existed only in security:chipcard OBS repository.
Obsoletes: engine_pkcs11 <= 0.2.2
%description
Libp11 is a library implementing a small layer on top of PKCS#11 API to
make using PKCS#11 implementations easier.
The official name for PKCS#11 is "RSA Security Inc. PKCS #11
Cryptographic Token Interface (Cryptoki)".
Libp11 source code includes the official header files (version 2.20)
and thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic
Token Interface (Cryptoki)".
%package -n %{libname}
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
Group: Productivity/Security
%description -n %{libname}
Libp11 is a library implementing a small layer on top of PKCS#11 API to
make using PKCS#11 implementations easier.
The official name for PKCS#11 is "RSA Security Inc. PKCS #11
Cryptographic Token Interface (Cryptoki)".
Libp11 source code includes the official header files (version 2.20)
and thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic
Token Interface (Cryptoki)".
%package -n openssl-engine-%{name}
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
Group: Productivity/Security
# IBM dropped support for the openssl-ibmpkcs11 and will contribute to
# libp11 project instead. (jsc#PED-3327)
Provides: openssl-ibmpkcs11 = 1.0.1
Obsoletes: openssl-ibmpkcs11 <= 1.0.1
%description -n openssl-engine-%{name}
Libp11 is a library implementing a small layer on top of PKCS#11 API to
make using PKCS#11 implementations easier.
The official name for PKCS#11 is "RSA Security Inc. PKCS #11
Cryptographic Token Interface (Cryptoki)".
Libp11 source code includes the official header files (version 2.20)
and thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic
Token Interface (Cryptoki)".
%package devel
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: openssl-devel
%description devel
Libp11 is a library implementing a small layer on top of PKCS#11 API to
make using PKCS#11 implementations easier.
The official name for PKCS#11 is "RSA Security Inc. PKCS #11
Cryptographic Token Interface (Cryptoki)".
Libp11 source code include the official header files (version 2.20) and
thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic
Token Interface (Cryptoki)".
%prep
%autosetup -p1
# Since the library name changes based on used openssl, we have to create baselibs.conf dynamically
echo %{libname} > %{_sourcedir}/baselibs.conf
%build
autoreconf -fiv
%configure \
--disable-static \
--disable-silent-rules \
--enable-doc\
--docdir=%{_docdir}/%{libname}
%make_build
%install
%make_install
mkdir -p %{buildroot}%{_docdir}/%{name} %{buildroot}%{_docdir}/%{libname}
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}%{_docdir}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%doc %{_docdir}/%{libname}
%{_libdir}/*.so.*
%files -n openssl-engine-%{name}
%if 0%{?suse_version} > 1325
%{_libdir}/engines-*
%else
%{_libdir}/engines
%endif
%files devel
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog