goto exit;
}
- /* This is dumb, pgpDig is only relevant for signatures, not digests */
- dig = pgpNewDig();
-
sigtd.tag = info.tag;
sigtd.type = info.type;
sigtd.count = info.count;
switch (info.tag) {
case RPMTAG_RSAHEADER:
case RPMTAG_DSAHEADER:
+ dig = pgpNewDig();
if ((rc = parsePGP(&sigtd, "header", dig)) != RPMRC_OK) {
goto exit;
}
goto exit;
}
- dig = pgpNewDig();
- if (dig == NULL) {
- rc = RPMRC_FAIL;
- goto exit;
- }
-
/* Retrieve the tag parameters from the signature header. */
if (!headerGet(sigh, sigtag, &sigtd, hgeflags)) {
rc = RPMRC_FAIL;
switch (sigtag) {
case RPMSIGTAG_RSA:
case RPMSIGTAG_DSA:
+ dig = pgpNewDig();
if ((rc = parsePGP(&sigtd, "package", dig)) != RPMRC_OK) {
goto exit;
}
case RPMSIGTAG_GPG:
case RPMSIGTAG_PGP5: /* XXX legacy */
case RPMSIGTAG_PGP:
+ dig = pgpNewDig();
if ((rc = parsePGP(&sigtd, "package", dig)) != RPMRC_OK) {
goto exit;
}