diff --git a/113.tar.gz b/113.tar.gz deleted file mode 100644 index a7da586a5f9c02c36e6a885cbd93ab42992b2d21..0000000000000000000000000000000000000000 Binary files a/113.tar.gz and /dev/null differ diff --git a/115.tar.gz b/115.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6817ef25cb3f01555b3c4d63dd7c9e8345ea3e7a Binary files /dev/null and b/115.tar.gz differ diff --git a/Fix-the-build-with-nss-3.44.patch b/Fix-the-build-with-nss-3.44.patch deleted file mode 100644 index e3cc74a4bd548cca2fc0fadc90da15efea6a21c4..0000000000000000000000000000000000000000 --- a/Fix-the-build-with-nss-3.44.patch +++ /dev/null @@ -1,42 +0,0 @@ -From b535d1ac5cbcdf18a97d97a92581e38080d9e521 Mon Sep 17 00:00:00 2001 -From: Peter Jones -Date: Tue, 14 May 2019 11:28:38 -0400 -Subject: [PATCH] efikeygen: Fix the build with nss 3.44 - -NSS 3.44 adds some certificate types, which changes a type and makes -some encoding stuff weird. As a result, we get: - -gcc8 -I/wrkdirs/usr/ports/sysutils/pesign/work/pesign-0.110/include -O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include -fno-strict-aliasing -g -O0 -g -O0 -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants --std=gnu99 -D_GNU_SOURCE -Wno-unused-result -Wno-unused-function -I../include/ -I/usr/local/include/nss -I/usr/local/include/nss/nss -I/usr/local/include/nspr -Werror -fPIC -isystem /usr/local/include -DCONFIG_amd64 -DCONFIG_amd64 -c efikeygen.c -o efikeygen.o -In file included from /usr/local/include/nss/nss/cert.h:22, - from efikeygen.c:39: -efikeygen.c: In function 'add_cert_type': -/usr/local/include/nss/nss/certt.h:445:5: error: unsigned conversion from 'int' to 'unsigned char' changes value from '496' to '240' [-Werror=overflow] - (NS_CERT_TYPE_SSL_CLIENT | NS_CERT_TYPE_SSL_SERVER | NS_CERT_TYPE_EMAIL | \ - ^ -efikeygen.c:208:23: note: in expansion of macro 'NS_CERT_TYPE_APP' - unsigned char type = NS_CERT_TYPE_APP; - ^~~~~~~~~~~~~~~~ -cc1: all warnings being treated as errors - -This is fixed by just making it an int. - -Fixes github issue #48. - -Signed-off-by: Peter Jones ---- - src/efikeygen.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/efikeygen.c b/src/efikeygen.c -index ede76ef..2cd953e 100644 ---- a/src/efikeygen.c -+++ b/src/efikeygen.c -@@ -208,7 +208,7 @@ static int - add_cert_type(cms_context *cms, void *extHandle, int is_ca) - { - SECItem bitStringValue; -- unsigned char type = NS_CERT_TYPE_APP; -+ int type = NS_CERT_TYPE_APP; - - if (is_ca) - type |= NS_CERT_TYPE_SSL_CA | diff --git a/pesign.spec b/pesign.spec index 64b262d9da1e3cfd8c7975a6db9d3f98ec233a31..d0bdff25def762dc97827c30bc141be7748b10f9 100644 --- a/pesign.spec +++ b/pesign.spec @@ -1,11 +1,11 @@ %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) Name: pesign Summary: Signing utility for UEFI binaries -Version: 0.113 -Release: 7 +Version: 115 +Release: 1 License: GPLv2 -URL: https://github.com/vathpela/pesign -Source0: https://github.com/rhboot/pesign/archive/113.tar.gz +URL: https://github.com/rhboot/pesign +Source0: https://github.com/rhboot/pesign/archive/refs/tags/115.tar.gz Source1: certs.tar.xz Source2: pesign.py Source3: euleros-certs.tar.bz2 @@ -16,13 +16,6 @@ BuildRequires: nspr nss nss-util popt-devel nss-tools nspr-devel >= 4.9.2-1 BuildRequires: nss-devel >= 3.13.6-1 efivar-devel >= 31-1 libuuid-devel tar xz BuildRequires: python3-rpm-macros python3 systemd python3-devel gcc -Patch0001: Fix-the-build-with-nss-3.44.patch -Patch0002: remove-superfluous-type-settings.patch - -# Feature: support SM2 and SM3 -Patch9000: Feature-pesign-support-SM3-digest-algorithm.patch -Patch9001: Feature-pesign-support-SM2-signature-algorithm.patch - %description pesign is a command line tool for manipulating signatures and cryptographic digests of UEFI applications. @@ -98,13 +91,19 @@ exit 0 %{_mandir}/man*/* %changelog +* Mon Nov 7 2022 jinlun - 115-1 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:update to 115 + * Mon Oct 31 2022 luhuaxin - 0.113-7 - fix the algorithm flag for sm2,sm3 * Mon Oct 10 2022 godcansee - 0.113-6 - add feature to support for sm2,sm3 -* Sat July 31 2021 Shenmei Tu - 0.113-5 +* Sat Jul 31 2021 Shenmei Tu - 0.113-5 - remove-superfluous-type-settings.patch * Mon May 31 2021 huanghaitao - 0.113-4 diff --git a/remove-superfluous-type-settings.patch b/remove-superfluous-type-settings.patch deleted file mode 100644 index 62bb12f2955bc6d1af27110d3ea139606644a8d6..0000000000000000000000000000000000000000 --- a/remove-superfluous-type-settings.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -Nur pesign-113/src/pesigcheck.c pesign-113-new/src/pesigcheck.c ---- pesign-113/src/pesigcheck.c 2019-05-11 02:53:51.000000000 +0800 -+++ pesign-113-new/src/pesigcheck.c 2021-07-30 11:25:25.000000000 +0800 -@@ -318,7 +318,6 @@ - reason->type = SIGNATURE; - reason->sig.data = data; - reason->sig.len = datalen; -- reason->type = siBuffer; - nreason += 1; - is_invalid = true; - } -@@ -330,7 +329,6 @@ - reason->type = SIGNATURE; - reason->sig.data = data; - reason->sig.len = datalen; -- reason->type = siBuffer; - nreason += 1; - has_valid_cert = true; - }