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

Method WriteReport

src/tw/twutil.cpp:407–422  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// WriteReport //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

405// WriteReport
406///////////////////////////////////////////////////////////////////////////////
407void cTWUtil::WriteReport(const TCHAR* filename,
408 const cFCOReportHeader& reportHeader,
409 const cFCOReport& r,
410 bool bEncrypt,
411 const cElGamalSigPrivateKey* pPrivateKey)
412{
413 cFileHeader fileHeader;
414 fileHeader.SetID(cFCOReport::GetFileHeaderID());
415
416 WriteObject(filename, &reportHeader, r, fileHeader, bEncrypt, pPrivateKey);
417
418 iUserNotify::GetInstance()->Notify(iUserNotify::V_NORMAL,
419 _T("%s%s\n"),
420 TSS_GetString(cTW, tw::STR_WRITE_REPORT_FILE).c_str(),
421 cDisplayEncoder::EncodeInline(filename).c_str());
422}
423
424
425///////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 4

WriteObjectFunction · 0.85
NotifyMethod · 0.80
c_strMethod · 0.80
SetIDMethod · 0.45

Tested by

no test coverage detected