Skip to content

Commit a096aa8

Browse files
olszomalmtrojnar
authored andcommitted
Set signing digest to generate RFC3161 response
1 parent aa08566 commit a096aa8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

osslsigncode.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,10 @@ static TS_RESP *get_rfc3161_response(FILE_FORMAT_CTX *ctx, X509 *signer_cert,
834834
if (!TS_RESP_CTX_add_md(resp_ctx, ctx->options->md)) {
835835
goto out;
836836
}
837+
/* signing digest to use */
838+
if (!TS_RESP_CTX_set_signer_digest(resp_ctx, ctx->options->md)) {
839+
goto out;
840+
}
837841
/* default policy to use when the request does not mandate any policy
838842
* tsa_policy1 = 1.2.3.4.1 */
839843
policy_obj = OBJ_txt2obj(TSA_POLICY1, 0);

0 commit comments

Comments
 (0)