diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-11-09 09:37:15 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-11-09 09:37:15 +0200 |
commit | dbb303fe1513fbdbf4878159a549f88de799d936 (patch) | |
tree | 9fe715ddbbe48f8ec65ccf3642874d34c737df65 /rpmio | |
parent | 9e9761caa885dfe5f588b9322cce9eaf03168510 (diff) | |
download | librpm-tizen-dbb303fe1513fbdbf4878159a549f88de799d936.tar.gz librpm-tizen-dbb303fe1513fbdbf4878159a549f88de799d936.tar.bz2 librpm-tizen-dbb303fe1513fbdbf4878159a549f88de799d936.zip |
Use pgpDigGetParams() in pgpVerifySig() compat wrapper too
- The fewer places that "know" about pgpDig allocation internals the better...
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmpgp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index 43e6c5dc2..cd0ddd71f 100644 --- 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) |