@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/1356741...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to