Take advantage of pgpPrtParams() directly in pgpsigFormat() extension
- No functional changes, just bypassing an unnecessary round-trip to a function really intended for other purposes, now that we can.
This commit is contained in:
parent
bbf2f63676
commit
5722245dd8
|
@ -423,10 +423,9 @@ static char * pgpsigFormat(rpmtd td)
|
||||||
if (rpmtdType(td) != RPM_BIN_TYPE) {
|
if (rpmtdType(td) != RPM_BIN_TYPE) {
|
||||||
val = xstrdup(_("(not a blob)"));
|
val = xstrdup(_("(not a blob)"));
|
||||||
} else {
|
} else {
|
||||||
pgpDig dig = NULL;
|
pgpDigParams sigp = NULL;
|
||||||
pgpDigParams sigp = parsePGPSig(td, NULL, NULL, &dig);
|
|
||||||
|
|
||||||
if (sigp == NULL) {
|
if (pgpPrtParams(td->data, td->count, PGPTAG_SIGNATURE, &sigp)) {
|
||||||
val = xstrdup(_("(not an OpenPGP signature)"));
|
val = xstrdup(_("(not an OpenPGP signature)"));
|
||||||
} else {
|
} else {
|
||||||
char dbuf[BUFSIZ];
|
char dbuf[BUFSIZ];
|
||||||
|
@ -449,7 +448,7 @@ static char * pgpsigFormat(rpmtd td)
|
||||||
dbuf, keyid);
|
dbuf, keyid);
|
||||||
|
|
||||||
free(keyid);
|
free(keyid);
|
||||||
pgpFreeDig(dig);
|
pgpDigParamsFree(sigp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue