wintrust: Use file's creation time as time to verify.

This commit is contained in:
Juan Lang 2007-10-03 12:00:59 -07:00 committed by Alexandre Julliard
parent 85efd02fab
commit deb1709686
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,9 @@ static BOOL SOFTPUB_OpenFile(CRYPT_PROVIDER_DATA *data)
else else
ret = FALSE; ret = FALSE;
} }
if (ret)
GetFileTime(data->pWintrustData->u.pFile->hFile, &data->sftSystemTime,
NULL, NULL);
TRACE("returning %d\n", ret); TRACE("returning %d\n", ret);
return ret; return ret;
} }
@ -390,6 +393,7 @@ static BOOL WINTRUST_SaveSigner(CRYPT_PROVIDER_DATA *data, DWORD signerIdx)
CRYPT_PROVIDER_SGNR sgnr = { sizeof(sgnr), { 0 } }; CRYPT_PROVIDER_SGNR sgnr = { sizeof(sgnr), { 0 } };
sgnr.psSigner = signerInfo; sgnr.psSigner = signerInfo;
memcpy(&sgnr.sftVerifyAsOf, &data->sftSystemTime, sizeof(FILETIME));
ret = data->psPfns->pfnAddSgnr2Chain(data, FALSE, signerIdx, &sgnr); ret = data->psPfns->pfnAddSgnr2Chain(data, FALSE, signerIdx, &sgnr);
} }
else else