projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e9761c
)
Use pgpDigGetParams() in pgpVerifySig() compat wrapper too
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 9 Nov 2011 07:37:15 +0000
(09:37 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 9 Nov 2011 07:37:15 +0000
(09:37 +0200)
- The fewer places that "know" about pgpDig allocation internals the better...
rpmio/rpmpgp.c
patch
|
blob
|
history
diff --git
a/rpmio/rpmpgp.c
b/rpmio/rpmpgp.c
index
43e6c5d
..
cd0ddd7
100644
(file)
--- a/
rpmio/rpmpgp.c
+++ b/
rpmio/rpmpgp.c
@@
-1041,7
+1041,8
@@
rpmRC pgpVerifySig(pgpDig dig, DIGEST_CTX hashctx)
if (dig == NULL || hashctx == NULL)
return RPMRC_FAIL;
- return pgpVerifySignature(&dig->pubkey, &dig->signature, hashctx);
+ return pgpVerifySignature(pgpDigGetParams(dig, PGPTAG_PUBLIC_KEY),
+ pgpDigGetParams(dig, PGPTAG_SIGNATURE), hashctx);
}
static pgpArmor decodePkts(uint8_t *b, uint8_t **pkt, size_t *pktlen)