Skip to content

Commit

Permalink
OrcLib: Authenticode: add cache for parsed catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed May 5, 2023
1 parent 3ab0882 commit dab7e5a
Show file tree
Hide file tree
Showing 7 changed files with 490 additions and 153 deletions.
7 changes: 6 additions & 1 deletion src/OrcCommand/Command/NTFSInfo/NTFSInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class ORCUTILS_API Main : public UtilitiesMain
DWORD dwTotalFileTreated;
DWORD m_dwProgress;

std::shared_ptr<AuthenticodeCache> m_authenticodeCache;
Authenticode m_codeVerifier;

HRESULT Prepare();
Expand Down Expand Up @@ -213,7 +214,11 @@ class ORCUTILS_API Main : public UtilitiesMain
, m_TimeLineOutput()
, m_AttrOutput()
, m_I30Output()
, m_SecDescrOutput() {};
, m_SecDescrOutput()
, m_authenticodeCache(std::make_shared<AuthenticodeCache>())
{
m_codeVerifier.SetCache(m_authenticodeCache);
}

// implemented in NTFSInfo_Output.cpp
void PrintUsage();
Expand Down
Loading

0 comments on commit dab7e5a

Please sign in to comment.