Skip to content

Commit

Permalink
Fixed attempt to use network access to verify digital signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Jul 17, 2013
1 parent fac662e commit ed99caf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pevLib/fileData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ void FileData::sigVerify() const
WintrustStructure.pCatalog = &WintrustCatalogStructure;
WintrustStructure.dwStateAction = WTD_STATEACTION_VERIFY;
WintrustStructure.dwUIContext = WTD_UICONTEXT_EXECUTE;
WintrustStructure.dwProvFlags = WTD_CACHE_ONLY_URL_RETRIEVAL;
if (CallWinVerifyTrust(WintrustStructure))
{
bits |= SIGVALID;
Expand All @@ -487,7 +488,7 @@ void FileData::sigVerify() const
WintrustStructure.dwUIChoice = WTD_UI_NONE;
WintrustStructure.fdwRevocationChecks = WTD_REVOKE_NONE;
WintrustStructure.dwStateAction = WTD_STATEACTION_VERIFY;
WintrustStructure.dwProvFlags = WTD_SAFER_FLAG;
WintrustStructure.dwProvFlags = WTD_SAFER_FLAG | WTD_CACHE_ONLY_URL_RETRIEVAL;
if (CallWinVerifyTrust(WintrustStructure))
{
bits |= SIGVALID;
Expand Down

0 comments on commit ed99caf

Please sign in to comment.