Skip to content

Commit e8f19a6

Browse files
olszomalmtrojnar
authored andcommitted
Added verbose output for digest encryption algorithm and signature during verification
1 parent 3a8e25e commit e8f19a6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

osslsigncode.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,6 +2799,15 @@ static time_t time_t_timestamp_get_attributes(CMS_ContentInfo **timestamp, PKCS7
27992799
}
28002800
}
28012801
}
2802+
2803+
/* Signature */
2804+
if (verbose) {
2805+
md_nid = OBJ_obj2nid(si->digest_enc_alg->algorithm);
2806+
printf("\nDigest encryption algorithm: %s\n",
2807+
(md_nid == NID_undef) ? "UNKNOWN" : OBJ_nid2sn(md_nid));
2808+
print_hash("Signature", "", ASN1_STRING_get0_data(si->enc_digest), ASN1_STRING_length(si->enc_digest));
2809+
}
2810+
28022811
return time;
28032812
}
28042813

0 commit comments

Comments
 (0)