From 976ec559d9f7e3ed42d445884a7037cf898bf636 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 5 Feb 2016 14:39:28 +0100 Subject: xmlsecurity: write origin.sigs when exporting OOXML signature It's an empty file, with the only purpose to have relations, referencing the individual signature streams. The only tricky part is that a temp file needs closeOutput() to flush its contents, flush() is not enough. Change-Id: I92ac61bce201c97a727ff02b1bb74599573a1807 --- xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmlsecurity/inc') diff --git a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx index 543ec618f919..4cb3002021ce 100644 --- a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx +++ b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx @@ -184,6 +184,8 @@ public: bool ReadAndVerifySignatureStorageStream(const css::uno::Reference& xInputStream); /// Adds an OOXML digital signature relation to _rels/.rels if there wasn't any before. void EnsureSignaturesRelation(css::uno::Reference xStorage); + /// Given that xStorage is an OOXML _xmlsignatures storage, create origin.sigs and its relations. + static void ExportSignatureRelations(css::uno::Reference xStorage, int nSignatureCount); }; #endif // INCLUDED_XMLSECURITY_INC_XMLSECURITY_XMLSIGNATUREHELPER_HXX -- cgit