[Rpm-maint] [rpm-software-management/rpm] Add pgpVerifySignature2 (PR #2453)
Neal H. Walfield
notifications at github.com
Fri Mar 24 13:48:37 UTC 2023
@nwalfield commented on this pull request.
> @@ -276,7 +276,18 @@ rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx)
pgpkey = key->pgpkey;
/* We call verify even if key not found for a signature sanity check */
- rc = pgpVerifySignature(pgpkey, sig, ctx);
+ char *errormsg = NULL;
+ rc = pgpVerifySignature2(pgpkey, sig, ctx, &errormsg);
+ if (errormsg) {
+ if (rc) {
+ rpmlog(RPMLOG_ERR, "Error verifying signature: %s",
+ errormsg);
+ } else {
+ rpmlog(RPMLOG_WARNING, "Warning verifying signature: %s",
Good point, I'll remove the error and warning. `Verifying signature` is enough. errormsg will contain the actual text.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2453#discussion_r1147605359
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2453/review/1356741308 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230324/943cb69f/attachment-0001.html>
More information about the Rpm-maint
mailing list