rpm/rpm-4.13.0-unknown-sigtags.patch
Panu Matilainen 1f55186cae Really ignore unknown tags in the signature header (#1480492)
Rpm >= 4.14 introduces an SHA256 digest on the header. Older versions
of course know nothing about it, but they're supposed to simply
ignore anything unknown in the signature header. Rpm 4.13 didn't, ugh.

Also make the testsuite not fail 90% of the cases due to recent
NSS versions require /dev/urandom presence.
2017-08-16 15:58:05 +03:00

26 lines
914 B
Diff

commit 5e311d32e4079bf7f2db001d4f08db3ac0d93af9
Author: Panu Matilainen <pmatilai@redhat.com>
Date: Fri Aug 11 12:48:23 2017 +0300
Really ignore unknown signature tags (RhBug:1480407)
Rather embarrassingly, rpm 4.13 fails rpmkeys -K signature verification
of rpm 4.14 packages because it doesn't really ignore unknown
signature tags like it claims to, and should. And so it reports a
bogus failure on the new SHA256 header-only digest. This bug as it is
only exists in 4.13.x, older versions are fine and >= 4.14 only
ever looks for tags it knows about.
diff --git a/lib/signature.c b/lib/signature.c
index 1b9fe345f..41bf85893 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -71,6 +71,7 @@ rpmRC rpmSigInfoParse(rpmtd td, const char *origin,
break;
default:
/* anything unknown just falls through for now */
+ sinfo->type = RPMSIG_OTHER_TYPE;
break;
}