mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-03 11:42:47 -05:00
Fix timestamping nested signatures (#266)
This commit is contained in:
12
cab.c
12
cab.c
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user