From 6b9774f6bcef1f44b1e2dccff78d50317fed9bae Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Thu, 10 Jul 2014 23:03:29 +0200 Subject: [PATCH] Remove reference to exsig in msi_verify_pkcs7 to fix the -DGSF_CAN_READ_METADATA build. This was broken due to the refactoring that happened during the introduction of nested signature support. --- osslsigncode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osslsigncode.c b/osslsigncode.c index 1ba9216..8334840 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -1527,7 +1527,7 @@ static int msi_verify_pkcs7(PKCS7 *p7, GsfInfile *infile, unsigned char *exdata, } #ifdef GSF_CAN_READ_MSI_METADATA - if (exsig && exdata) { + if (exdata) { tohex(cexmdbuf, hexbuf, EVP_MD_size(md)); int exok = !memcmp(exdata, cexmdbuf, MIN(EVP_MD_size(md), exlen)); if (!exok) ret = 1;