MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / ReadReport

Method ReadReport

src/tw/twutil.cpp:428–441  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// ReadReport //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

426// ReadReport
427///////////////////////////////////////////////////////////////////////////////
428void cTWUtil::ReadReport(const TCHAR* reportFileName,
429 cFCOReportHeader& reportHeader,
430 cFCOReport& r,
431 const cElGamalSigPublicKey* pPublicKey,
432 bool silent,
433 bool& bEncrypted)
434{
435 iUserNotify::GetInstance()->Notify(iUserNotify::V_VERBOSE,
436 _T("%s%s\n"),
437 TSS_GetString(cTW, tw::STR_OPEN_REPORT_FILE).c_str(),
438 cDisplayEncoder::EncodeInline(reportFileName).c_str());
439
440 ReadObject(reportFileName, &reportHeader, r, cFCOReport::GetFileHeaderID(), pPublicKey, bEncrypted);
441}
442
443
444///////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

ReadObjectFunction · 0.85
NotifyMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected