summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-11-15 20:16:07 +0200
committerTor Lillqvist <tml@collabora.com>2016-11-15 21:13:04 +0200
commit108b0a5e37d649ee8b2b41a6695e03032d648226 (patch)
treef0631b5c4239d37e16d2505e875485dd8eca3eea /xmlsecurity
parent34ba29887fe2ad47c5a8663bbdc511d46ab732b2 (diff)
Sign also the xd:SignedProperties
Change-Id: If5793cd8a721ac5b4fce5280b6180f2827c72501
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/xsecsign.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmlsecurity/source/helper/xsecsign.cxx b/xmlsecurity/source/helper/xsecsign.cxx
index a838a9c575e0..a43e75bbb793 100644
--- a/xmlsecurity/source/helper/xsecsign.cxx
+++ b/xmlsecurity/source/helper/xsecsign.cxx
@@ -168,6 +168,12 @@ cssu::Reference< cssxc::sax::XReferenceResolvedListener > XSecController::prepar
internalSignatureInfor.addReference(SignatureReferenceType::SAMEDOCUMENT, digestID, internalSignatureInfor.signatureInfor.ouPropertyId, -1 );
size++;
+ if (bXAdESCompliantIfODF)
+ {
+ internalSignatureInfor.addReference(SignatureReferenceType::SAMEDOCUMENT, digestID, "idSignedProperties", -1);
+ size++;
+ }
+
if (!internalSignatureInfor.signatureInfor.ouDescription.isEmpty())
{
// Only mention the hash of the description in the signature if it's non-empty.