msi_calc_digest() with FILE_HEADER parameter

This commit is contained in:
olszomal
2023-02-08 10:19:10 +01:00
committed by Michał Trojnara
parent 83e47e0252
commit 8e74a05b40
3 changed files with 16 additions and 16 deletions

View File

@ -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: