mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-03 11:42:47 -05:00
Enable verification that a catalog file was signed by a valid certificate.
Simplify setting and signing a content blob. Clean up a support library.
This commit is contained in:

committed by
Michał Trojnara

parent
33253afb5e
commit
900ffed596
6
appx.c
6
appx.c
@ -587,12 +587,16 @@ static PKCS7 *appx_pkcs7_prepare(FILE_FORMAT_CTX *ctx, BIO *hash, BIO *outdata)
|
||||
printf("Creating a new signature failed\n");
|
||||
return NULL; /* FAILED */
|
||||
}
|
||||
if (!add_indirect_data_object(p7, hashes, ctx)) {
|
||||
if (!add_indirect_data_object(p7)) {
|
||||
printf("Adding SPC_INDIRECT_DATA_OBJID failed\n");
|
||||
BIO_free_all(hashes);
|
||||
PKCS7_free(p7);
|
||||
return NULL; /* FAILED */
|
||||
}
|
||||
if (!sign_spc_indirect_data_content(p7, hashes, ctx)) {
|
||||
printf("Failed to set signed content\n");
|
||||
return NULL; /* FAILED */
|
||||
}
|
||||
BIO_free_all(hashes);
|
||||
}
|
||||
return p7; /* OK */
|
||||
|
Reference in New Issue
Block a user