diff --git a/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupPrimaryReport.cs b/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupPrimaryReport.cs index bf6fec9c28f71aa100c4ff205c94c2e85b2b7d06..d3fd01c0c52d7d28b545c797189ef2f9b7e4b699 100644 --- a/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupPrimaryReport.cs +++ b/VectoMockup/VectoMockup/Reports/XMLDeclarationMockupPrimaryReport.cs @@ -1,4 +1,6 @@ using System.Linq; +using System.Xml.Linq; +using TUGraz.VectoCommon.Resources; using TUGraz.VectoCore.Models.Simulation.Data; using TUGraz.VectoCore.OutputData; using TUGraz.VectoCore.OutputData.XML; @@ -56,13 +58,27 @@ namespace TUGraz.VectoMockup.Reports (ManufacturerRpt as IXMLMockupReport).WriteMockupSummary(Results.First()); (PrimaryReport as IXMLMockupReport).WriteMockupSummary(Results.First()); ManufacturerRpt.GenerateReport(); - var fullReportHash = GetSignature(ManufacturerRpt.Report); + var fullReportHash = CreateDummySig(); //CustomerRpt.GenerateReport(fullReportHash); PrimaryReport.GenerateReport(fullReportHash); } + protected virtual XElement CreateDummySig() + { + XNamespace di = "http://www.w3.org/2000/09/xmldsig#"; + return new XElement( + di + XMLNames.DI_Signature_Reference, + new XElement( + di + XMLNames.DI_Signature_Reference_DigestMethod, + new XAttribute(XMLNames.DI_Signature_Algorithm_Attr, "null")), + new XElement(di + XMLNames.DI_Signature_Reference_DigestValue, "NOT AVAILABLE") + ); + } + } + + + #endregion - } } \ No newline at end of file