From 6376a6bafb7aceaab743e8918c2ec858a857ea41 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 9 Feb 2016 10:38:20 +0100 Subject: xmlsecurity: export OOXML Change-Id: I8a0c85195992137fbc8a559cacdb389cea03671a --- xmlsecurity/source/helper/xsecctl.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx index 0b7fa3427a62..fedbb5f6fb68 100644 --- a/xmlsecurity/source/helper/xsecctl.cxx +++ b/xmlsecurity/source/helper/xsecctl.cxx @@ -1036,6 +1036,14 @@ void XSecController::exportOOXMLSignature(const uno::ReferencestartElement(TAG_SIGNATUREVALUE, uno::Reference(new SvXMLAttributeList())); xDocumentHandler->characters(rInformation.ouSignatureValue); xDocumentHandler->endElement(TAG_SIGNATUREVALUE); + + xDocumentHandler->startElement(TAG_KEYINFO, uno::Reference(new SvXMLAttributeList())); + xDocumentHandler->startElement(TAG_X509DATA, uno::Reference(new SvXMLAttributeList())); + xDocumentHandler->startElement(TAG_X509CERTIFICATE, uno::Reference(new SvXMLAttributeList())); + xDocumentHandler->characters(rInformation.ouX509Certificate); + xDocumentHandler->endElement(TAG_X509CERTIFICATE); + xDocumentHandler->endElement(TAG_X509DATA); + xDocumentHandler->endElement(TAG_KEYINFO); } SignatureInformation XSecController::getSignatureInformation( sal_Int32 nSecurityId ) const -- cgit