From dbb303fe1513fbdbf4878159a549f88de799d936 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 9 Nov 2011 09:37:15 +0200 Subject: [PATCH] Use pgpDigGetParams() in pgpVerifySig() compat wrapper too - The fewer places that "know" about pgpDig allocation internals the better... --- rpmio/rpmpgp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index 43e6c5d..cd0ddd7 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) -- 2.7.4