summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-02-09 10:38:20 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-02-09 11:03:00 +0100
commit6376a6bafb7aceaab743e8918c2ec858a857ea41 (patch)
tree30dbc50782a74b6b4f735da7194b3f16ac3e8d2a /xmlsecurity
parent098c1e495ee87f0674018fd18c77a3a1abef698d (diff)
xmlsecurity: export OOXML <KeyInfo>
Change-Id: I8a0c85195992137fbc8a559cacdb389cea03671a
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/xsecctl.cxx8
1 files changed, 8 insertions, 0 deletions
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::Reference<xml::sax::XDocume
xDocumentHandler->startElement(TAG_SIGNATUREVALUE, uno::Reference<xml::sax::XAttributeList>(new SvXMLAttributeList()));
xDocumentHandler->characters(rInformation.ouSignatureValue);
xDocumentHandler->endElement(TAG_SIGNATUREVALUE);
+
+ xDocumentHandler->startElement(TAG_KEYINFO, uno::Reference<xml::sax::XAttributeList>(new SvXMLAttributeList()));
+ xDocumentHandler->startElement(TAG_X509DATA, uno::Reference<xml::sax::XAttributeList>(new SvXMLAttributeList()));
+ xDocumentHandler->startElement(TAG_X509CERTIFICATE, uno::Reference<xml::sax::XAttributeList>(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