Fix timestamping nested signatures (#266)

This commit is contained in:
yjh-styx
2023-05-14 23:32:56 +03:00
committed by GitHub
parent b61bcaac2e
commit 56e7a72e8a
5 changed files with 18 additions and 31 deletions

12
cab.c
View File

@ -493,16 +493,8 @@ static PKCS7 *cab_pkcs7_prepare(FILE_FORMAT_CTX *ctx, BIO *hash, BIO *outdata)
return NULL; /* FAILED */
}
}
if (ctx->options->nest) {
if (!cursig_set_nested(cursig, p7, ctx)) {
printf("Unable to append the nested signature to the current signature\n");
PKCS7_free(p7);
PKCS7_free(cursig);
return NULL; /* FAILED */
}
PKCS7_free(p7);
return cursig;
}
if (ctx->options->nest)
ctx->options->prevsig = cursig;
return p7;
}