diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-11-15 20:16:07 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-11-15 21:13:04 +0200 |
commit | 108b0a5e37d649ee8b2b41a6695e03032d648226 (patch) | |
tree | f0631b5c4239d37e16d2505e875485dd8eca3eea /xmlsecurity | |
parent | replace explicit delete and simplify (diff) | |
download | core-108b0a5e37d649ee8b2b41a6695e03032d648226.tar.gz core-108b0a5e37d649ee8b2b41a6695e03032d648226.zip |
Sign also the xd:SignedProperties
Change-Id: If5793cd8a721ac5b4fce5280b6180f2827c72501
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/helper/xsecsign.cxx | 6 |
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. |