Skip to content

Commit

Permalink
Merge pull request #2198 from Xeicker/fix_rpmsignature
Browse files Browse the repository at this point in the history
Fix signature obtaining in rpm_info probe
  • Loading branch information
jan-cerny authored Feb 7, 2025
2 parents eb6a13a + b3e7e54 commit 123e2aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/OVAL/probes/unix/linux/rpminfo_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ static void pkgh2rep(Header h, struct rpminfo_rep *r, regex_t *keyid_regex)

r->evr = str;

str = headerFormat (h, "%|SIGGPG?{%{SIGGPG:pgpsig}}:{%{SIGPGP:pgpsig}}|", &rpmerr);
str = headerFormat (
h,
"%|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|",
&rpmerr);

if (regexec(keyid_regex, str, 1, keyid_match, 0) != 0) {
sid = NULL;
Expand Down

0 comments on commit 123e2aa

Please sign in to comment.