summaryrefslogtreecommitdiff
path: root/lib/rpmchecksig.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-11-06 20:43:57 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-11-07 08:05:25 +0200
commit44f1c853fd776f50f58f300e6045d45d73ff5566 (patch)
tree9ccfe6c4c54481a3060301a89460aaaf6fc95942 /lib/rpmchecksig.c
parent03879e09cf880adf6c2cec5c73779d77bd6a7f95 (diff)
downloadrpm-44f1c853fd776f50f58f300e6045d45d73ff5566.tar.gz
rpm-44f1c853fd776f50f58f300e6045d45d73ff5566.tar.bz2
rpm-44f1c853fd776f50f58f300e6045d45d73ff5566.zip
Eliminate couple of unnecessary pgpDig usages
- stashKeyid() only wants the signature, not the whole dig - dig argument to readFile() was simply unused
Diffstat (limited to 'lib/rpmchecksig.c')
-rw-r--r--lib/rpmchecksig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpmchecksig.c b/lib/rpmchecksig.c
index 5829c6d09..44f27f36e 100644
--- a/lib/rpmchecksig.c
+++ b/lib/rpmchecksig.c
@@ -105,7 +105,7 @@ int rpmcliImportPubkeys(rpmts ts, ARGV_const_t argv)
/**
* @todo If the GPG key was known available, the md5 digest could be skipped.
*/
-static int readFile(FD_t fd, const char * fn, pgpDig dig,
+static int readFile(FD_t fd, const char * fn,
rpmDigestBundle plbundle, rpmDigestBundle hdrbundle)
{
unsigned char buf[4*BUFSIZ];
@@ -337,7 +337,7 @@ static int rpmpkgVerifySigs(rpmKeyring keyring, rpmQueryFlags flags,
/* Read the file, generating digest(s) on the fly. */
fdSetBundle(fd, plbundle);
- if (readFile(fd, fn, dig, plbundle, hdrbundle)) {
+ if (readFile(fd, fn, plbundle, hdrbundle)) {
goto exit;
}