/** * Verify DSA/RSA signature. * @param keyring pubkey keyring * @param sinfo OpenPGP signature parameters * @param hashctx digest context * @retval msg verbose success/failure text * @return RPMRC_OK on success */ static rpmRC verifySignature(rpmKeyring keyring, struct rpmsinfo_s *sinfo, DIGEST_CTX hashctx, char **msg) { rpmRC res = rpmKeyringVerifySig(keyring, sinfo->sig, hashctx); return res; }
/** * Verify DSA/RSA signature. * @param keyring pubkey keyring * @param sig OpenPGP signature parameters * @param hashctx digest context * @param isHdr header-only signature? * @retval msg verbose success/failure text * @return RPMRC_OK on success */ static rpmRC verifySignature(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX hashctx, int isHdr, char **msg) { rpmRC res = rpmKeyringVerifySig(keyring, sig, hashctx); char *sigid = pgpIdentItem(sig); rasprintf(msg, "%s%s: %s\n", isHdr ? _("Header ") : "", sigid, rpmSigString(res)); free(sigid); return res; }