- No functional changes, just bypassing an unnecessary round-trip to
a function really intended for other purposes, now that we can.
if (rpmtdType(td) != RPM_BIN_TYPE) {
val = xstrdup(_("(not a blob)"));
} else {
- pgpDig dig = NULL;
- pgpDigParams sigp = parsePGPSig(td, NULL, NULL, &dig);
+ pgpDigParams sigp = NULL;
- if (sigp == NULL) {
+ if (pgpPrtParams(td->data, td->count, PGPTAG_SIGNATURE, &sigp)) {
val = xstrdup(_("(not an OpenPGP signature)"));
} else {
char dbuf[BUFSIZ];
dbuf, keyid);
free(keyid);
- pgpFreeDig(dig);
+ pgpDigParamsFree(sigp);
}
}