summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-03 15:57:14 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-03 15:57:14 +0300
commitb195048bbb27a1aae4aa3938c3b1f79e0a26ae88 (patch)
tree6f08bed777dcb057460179ec490a46f9cfbbaa19 /rpmqv.c
parent5b717266644f939aaa7ec2be7b2a6673df5556dc (diff)
downloadlibrpm-tizen-b195048bbb27a1aae4aa3938c3b1f79e0a26ae88.tar.gz
librpm-tizen-b195048bbb27a1aae4aa3938c3b1f79e0a26ae88.tar.bz2
librpm-tizen-b195048bbb27a1aae4aa3938c3b1f79e0a26ae88.zip
Further simplify rpmcliVerifySignatures()
- Since this is a rpmcliFoo() function, we can assume rpmcliInit() is used and the verify disabling bits are set through the common rpmcliQueryFlags set, making qva argument unnecessary.
Diffstat (limited to 'rpmqv.c')
-rw-r--r--rpmqv.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 7332a6f17..a728fdcad 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -413,14 +413,8 @@ int main(int argc, char *argv[])
ec = rpmcliImportPubkeys(ts, (ARGV_const_t) poptGetArgs(optCon));
break;
case MODE_CHECKSIG:
- { rpmVerifyFlags verifyFlags =
- (VERIFY_FILEDIGEST|VERIFY_DIGEST|VERIFY_SIGNATURE);
-
- verifyFlags &= ~rpmcliQueryFlags;
- ka->qva_flags = (rpmQueryFlags) verifyFlags;
- ec = rpmcliVerifySignatures(ts, ka, (ARGV_const_t) poptGetArgs(optCon));
+ ec = rpmcliVerifySignatures(ts, (ARGV_const_t) poptGetArgs(optCon));
break;
- }
#endif /* IAM_RPMK */
#if !defined(IAM_RPMQV)