[packages/rpm] - cosmetics
baggins
baggins at pld-linux.org
Mon Oct 22 15:23:00 CEST 2012
commit 9b8655c2440d92c0a0df2746fa5b052f45fa3bcb
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Oct 22 15:22:50 2012 +0200
- cosmetics
rpm-disable-hmac-verify.patch | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/rpm-disable-hmac-verify.patch b/rpm-disable-hmac-verify.patch
index 0566261..fb46df7 100644
--- a/rpm-disable-hmac-verify.patch
+++ b/rpm-disable-hmac-verify.patch
@@ -1,13 +1,15 @@
--- rpm-5.4.10.orig/lib/verify.c 2012-07-06 17:39:16.000000000 +0200
+++ rpm-5.4.10/lib/verify.c 2012-10-21 19:35:08.610708732 +0200
-@@ -261,11 +261,18 @@
+@@ -261,11 +261,20 @@
unsigned char * fdigest = (unsigned char *)
memset(alloca(vf->dlen), 0, vf->dlen);
size_t fsize = 0;
-+// Disable hmac during digest calculation, since rpm package files contain plain md5sums,
-+// hmac support is useless, see:
-+// http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2012-October/023193.html
+#if defined(RPM_VENDOR_PLD)
++/*
++ * Disable hmac during digest calculation, since rpm package files contain plain md5sums,
++ * hmac support is useless, see:
++ * http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2012-October/023193.html
++ */
+ int rc = dodigest(vf->dalgo, vf->fn, fdigest, 0, &fsize);
+#else
#define _mask (RPMVERIFY_FDIGEST|RPMVERIFY_HMAC)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/9b8655c2440d92c0a0df2746fa5b052f45fa3bcb
More information about the pld-cvs-commit
mailing list