commit 81711ed07f01545f69eb9430cbdddd68d9ee58bc43bc3f2a82b0b8aba60e5bcf Author: Adrian Schröter Date: Fri May 3 19:22:05 2024 +0200 Sync from SUSE:SLFO:Main pkcs11-helper revision 9e927c837a957489720669c7cd9eddc4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..4f54f3b --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libpkcs11-helper1 diff --git a/pkcs11-helper-1.29.0.tar.bz2 b/pkcs11-helper-1.29.0.tar.bz2 new file mode 100644 index 0000000..1a9f015 --- /dev/null +++ b/pkcs11-helper-1.29.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:996846a3c8395e03d8c0515111dc84d82e6e3648d44ba28cb2dbbbca2d4db7d6 +size 422549 diff --git a/pkcs11-helper.changes b/pkcs11-helper.changes new file mode 100644 index 0000000..96d04ce --- /dev/null +++ b/pkcs11-helper.changes @@ -0,0 +1,146 @@ +------------------------------------------------------------------- +Fri Oct 14 01:34:06 UTC 2022 - Jason Sikes + +- Update to 1.29.0: + * build: do not fail if slot evnets are disabled, thanks to Fabrice Fontaine. + * core: do not assume standard objects supported by provider. + * openssl: set back key into EVP for openssl-3 to work, thanks to apollo13. + +------------------------------------------------------------------- +Sun Jan 23 08:45:44 UTC 2022 - Andreas Stieger + +- update to 1.28.0: + * build and OpenSSL compatibility fixes + * certificate: add methods accept full mechanism + * core: load provider library as private + * add API to support adding properties + * core: add PKCS11H_PROVIDER_PROPERTY_PROVIDER_DESTRUCT_HOOK + * session: respect login required token flag + * certificate: respect always authenticate flag + +------------------------------------------------------------------- +Mon Dec 13 20:11:31 UTC 2021 - Dirk Müller + +- update to 1.27.0: + * core: handle PIN expiration after C_Login as C_Login may take a while + * core: return explict success when plugin&play and no threading and no + safefork, thanks to Tunnelblick + * openssl: build with openssl ec disabled + * openssl: support RSA_NO_PADDING padding, thanks to Selva Nair + * core: reduce mutex lock scope of add/remove provider, thanks to Frank Morgner + * core: improve the fork fixup sequence + +------------------------------------------------------------------- +Thu Aug 8 10:56:38 UTC 2019 - Dominique Leuenberger + +- Own %{_datadir}/aclocal: when we might switch to pkgconf instead + of pkg-config, nothing in the build root is 'accidentally' owning + this directory for us. + +------------------------------------------------------------------- +Tue Jan 29 21:33:08 CET 2019 - sbrabec@suse.com + +- Update to version 1.25.1: + * core: build with threading disabled, do not attempt to + initialize provider with fork mode is not safe. Too many + providers do not follow the PKCS#11 spec. + * openssl: rework support 1.1. + +------------------------------------------------------------------- +Wed Jul 19 13:23:52 UTC 2017 - jengelh@inai.de + +- RPM group fix. +- Remove --with-pic which is only for static libs. + +------------------------------------------------------------------- +Tue Jul 18 13:31:17 UTC 2017 - tchvatal@suse.com + +- Version update to 1.22: + * Support openssl-1.1 + * bunch of small fixes +- Remove obsolete patch pkcs11-helper-1.06-pkgconfig.patch + +------------------------------------------------------------------- +Sat Dec 20 11:52:04 UTC 2014 - p.drouand@gmail.com + +- Update to version 1.11 + + openssl: support generic pkey. + + openssl: add dsa support. + + openssl: add ecdsa support. +- Changes from version 1.10 + + PolarSSL crypto engine by Adriaan de Jong + + build: --disable-crypto-engine-win32 renamed to + --disable-crypto-engine-cryptoapi + + api: PKCS11H_FEATURE_MASK_ENGINE_CRYPTO_WIN32 renamed to + PKCS11H_FEATURE_MASK_ENGINE_CRYPTO_CRYPTOAPI. + + api: PKCS11H_ENGINE_CRYPTO_WIN32 renamed to + PKCS11H_ENGINE_CRYPTO_CRYPTOAPI +- pkcs11-helper has a new home; update homepage and source Url + +------------------------------------------------------------------- +Sat Mar 2 08:16:09 UTC 2013 - coolo@suse.com + +- update license to new format + +------------------------------------------------------------------- +Tue Jul 10 17:33:40 CEST 2012 - sbrabec@suse.cz + +- Update to version 1.09: + * Do not retry if CKR_BUFFER_TOO_SMALL and none NULL target. + * Do not attempt to logout if uninitialized. + * Use OpenSSL engine's rsa_priv_enc instead of rsa_sign. + +------------------------------------------------------------------- +Sun Nov 20 06:28:19 UTC 2011 - coolo@suse.com + +- add libtool as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Mon Feb 1 12:25:12 UTC 2010 - jengelh@medozas.de + +- package baselibs.conf + +------------------------------------------------------------------- +Thu Apr 9 16:32:23 CEST 2009 - sbrabec@suse.cz + +- Updated to version 1.07: + * Minor portability fix. +- Don't call autoreconf on older products. + +------------------------------------------------------------------- +Thu Mar 19 00:36:33 CET 2009 - crrodriguez@suse.de + +- remove static libraries and "la" files +- fix -devel package dependencies and pkgconfig file + +------------------------------------------------------------------- +Mon Sep 8 17:43:33 CEST 2008 - sbrabec@suse.cz + +- Updated to version 1.06: + * Portability fixes. + +------------------------------------------------------------------- +Tue Apr 15 15:06:50 CEST 2008 - ro@suse.de + +- added baselibs.conf file for multilib support + +------------------------------------------------------------------- +Wed Apr 2 17:57:17 CEST 2008 - sbrabec@suse.cz + +- Updated to version 1.05: + * Export pkcs11h_logout(). + * Added NSS crypto engine. + * Added new slotevent mode (poll vs fetch). + * Add more invalid characters to serialization string. + * Fix openssl decrypt return code. + +------------------------------------------------------------------- +Wed Aug 8 12:28:32 CEST 2007 - sbrabec@suse.cz + +- Fixed dependencies to allow to install more instances of library. + +------------------------------------------------------------------- +Wed Aug 1 14:04:49 CEST 2007 - sbrabec@suse.cz + +- New SuSE package, version 1.03. + diff --git a/pkcs11-helper.spec b/pkcs11-helper.spec new file mode 100644 index 0000000..a5157f5 --- /dev/null +++ b/pkcs11-helper.spec @@ -0,0 +1,113 @@ +# +# spec file for package pkcs11-helper +# +# Copyright (c) 2022 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/ +# + + +Name: pkcs11-helper +Version: 1.29.0 +Release: 0 +Summary: Helper Library for the Use with Smart Cards and the PKCS#11 API +License: BSD-3-Clause AND GPL-2.0-only +Group: Development/Libraries/C and C++ +URL: https://github.com/OpenSC/OpenSC/wiki +Source0: https://github.com/OpenSC/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2 +Source2: baselibs.conf +BuildRequires: doxygen +BuildRequires: fdupes +#BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: pkgconfig(openssl) +Requires: libpkcs11-helper1 = %{version} + +%description +pkcs11-helper allows using multiple PKCS#11 providers at the same +time and selecting keys by id, label or certificate subject. +Besides it covers the following topics: * Handling card removal +and card insert events: +* Handling card re-insert to a different slot +* Supporting session expiration serialization +* and much more All this is possible using a simple API. + +%package -n libpkcs11-helper1 +Summary: Helper Library for the Use with Smart Cards and the PKCS#11 API +Group: System/Libraries + +%description -n libpkcs11-helper1 +pkcs11-helper allows using multiple PKCS#11 providers at the same time, +selecting keys by id, label or certificate subject, handling card +removal and card insert events, handling card re-insert to a different +slot, supporting session expiration serialization and much more, all +using a simple API. + +%package devel +Summary: Helper Library for the Use with Smart Cards and the PKCS#11 API +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} +Requires: pkgconfig(openssl) + +%description devel +pkcs11-helper allows using multiple PKCS#11 providers at the same time, +selecting keys by id, label or certificate subject, handling card +removal and card insert events, handling card re-insert to a different +slot, supporting session expiration serialization and much more, all +using a simple API. + +%prep +%setup -q + +%build +#autoreconf -fvi +# We use only openssl - disable all other engines +%configure \ + --disable-static \ + --enable-doc \ + --docdir=%{_docdir}/%{name} \ + --disable-crypto-engine-gnutls \ + --disable-crypto-engine-nss \ + --disable-crypto-engine-polarssl \ + --disable-crypto-engine-mbedtls \ + --disable-crypto-engine-cryptoapi +%make_build + +%install +%make_install +cp -a AUTHORS ChangeLog THANKS %{buildroot}%{_docdir}/%{name}/ +find %{buildroot} -type f -name "*.la" -delete -print +%fdupes %{buildroot}%{_docdir} + +%post -n libpkcs11-helper1 -p /sbin/ldconfig +%postun -n libpkcs11-helper1 -p /sbin/ldconfig + +%files +%license COPYING* +%doc %{_docdir}/%{name} +%exclude %{_docdir}/%{name}/api +%{_mandir}/man8/*%{ext_man} + +%files -n libpkcs11-helper1 +%license COPYING* +%{_libdir}/libpkcs11-helper.so.* + +%files devel +%license COPYING* +%doc %{_docdir}/%{name}/api +%{_includedir}/pkcs11-helper-1.0 +%{_libdir}/pkgconfig/*.pc +%{_libdir}/*.so +%dir %{_datadir}/aclocal +%{_datadir}/aclocal/*.m4 + +%changelog