mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-03 11:42:47 -05:00
msi_calc_digest() with FILE_HEADER parameter
This commit is contained in:

committed by
Michał Trojnara

parent
83e47e0252
commit
8e74a05b40
@ -257,18 +257,6 @@ typedef struct {
|
||||
#endif /* OPENSSL_VERSION_NUMBER>=0x30000000L */
|
||||
} GLOBAL_OPTIONS;
|
||||
|
||||
typedef struct {
|
||||
uint32_t header_size;
|
||||
uint32_t pe32plus;
|
||||
uint16_t magic;
|
||||
uint32_t pe_checksum;
|
||||
uint32_t nrvas;
|
||||
uint32_t sigpos;
|
||||
uint32_t siglen;
|
||||
uint32_t fileend;
|
||||
uint16_t flags;
|
||||
} FILE_HEADER;
|
||||
|
||||
typedef struct {
|
||||
EVP_PKEY *pkey;
|
||||
X509 *cert;
|
||||
@ -4490,7 +4478,7 @@ static int cat_verify_member(CatalogAuthAttr *attribute, char *indata, FILE_HEAD
|
||||
goto out;
|
||||
break;
|
||||
case FILE_TYPE_MSI:
|
||||
if (!msi_calc_digest(indata, mdtype, cmdbuf, header->fileend))
|
||||
if (!msi_calc_digest(indata, mdtype, cmdbuf, header))
|
||||
goto out;
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user