Skip to content

Commit

Permalink
Added verbose output for digest encryption algorithm and signature du…
Browse files Browse the repository at this point in the history
…ring verification
  • Loading branch information
olszomal committed Dec 31, 2024
1 parent 3a8e25e commit 70483f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions osslsigncode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2799,6 +2799,15 @@ static time_t time_t_timestamp_get_attributes(CMS_ContentInfo **timestamp, PKCS7
}
}
}

/* Signature */
if (verbose) {
md_nid = OBJ_obj2nid(si->digest_enc_alg->algorithm);
printf("\nDigest encryption algorithm: %s\n",
(md_nid == NID_undef) ? "UNKNOWN" : OBJ_nid2sn(md_nid));
print_hash("Signature", "", ASN1_STRING_get0_data(si->enc_digest), ASN1_STRING_length(si->enc_digest));
}

return time;
}

Expand Down

0 comments on commit 70483f4

Please sign in to comment.