diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-11-15 21:12:11 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-11-15 21:13:13 +0200 |
commit | 087705c72dcf555951c49b95476568adbab74edf (patch) | |
tree | a295280f853a709365c488fcc4597b9005e54e96 | |
parent | 108b0a5e37d649ee8b2b41a6695e03032d648226 (diff) |
Add the Target for xd:QualifyingProperties
Change-Id: Ic15c34c77ff24a506b59ed02db3cfbb6722d0f25
-rw-r--r-- | xmlsecurity/source/helper/xsecctl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx index 46de8124affe..2223ef0c1230 100644 --- a/xmlsecurity/source/helper/xsecctl.cxx +++ b/xmlsecurity/source/helper/xsecctl.cxx @@ -883,9 +883,11 @@ void XSecController::exportSignature( "Object", cssu::Reference< cssxs::XAttributeList > (pAttributeList)); { + pAttributeList = new SvXMLAttributeList(); + pAttributeList->AddAttribute("Target", "#" + signatureInfo.ouSignatureId); xDocumentHandler->startElement( "xd:QualifyingProperties", - cssu::Reference< cssxs::XAttributeList > (new SvXMLAttributeList())); + cssu::Reference< cssxs::XAttributeList > (pAttributeList)); DocumentSignatureHelper::writeSignedProperties(xDocumentHandler, signatureInfo, sDate); writeUnsignedProperties(xDocumentHandler, signatureInfo); xDocumentHandler->endElement( "xd:QualifyingProperties" ); |