diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-09-18 12:06:04 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-09-19 07:52:00 +0200 |
commit | 02ae1077f118dc9d287913d99528de58f69852ce (patch) | |
tree | ad0a3d12af57b5f10f5736dbfc2472713dda3c45 | |
parent | 7d242f3bd7277236046f90d3f32b9792fd8ea97b (diff) |
SignatureType should be "2" for ooxml signatures
This is what recent MS Office writes and means XmlDsig
Change-Id: I053f4a3261d7925142666c7d1e2e7dbb51eaff57
Reviewed-on: https://gerrit.libreoffice.org/60675
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r-- | xmlsecurity/source/helper/ooxmlsecexporter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/source/helper/ooxmlsecexporter.cxx b/xmlsecurity/source/helper/ooxmlsecexporter.cxx index 8e594cde62d6..5a3a8c293b0b 100644 --- a/xmlsecurity/source/helper/ooxmlsecexporter.cxx +++ b/xmlsecurity/source/helper/ooxmlsecexporter.cxx @@ -400,7 +400,7 @@ void OOXMLSecExporter::Impl::writeSignatureInfo() m_xDocumentHandler->characters("9"); // This is what MSO 2016 writes, though [MS-OFFCRYPTO] doesn't document what the value means. m_xDocumentHandler->endElement("SignatureProviderDetails"); m_xDocumentHandler->startElement("SignatureType", uno::Reference<xml::sax::XAttributeList>(new SvXMLAttributeList())); - m_xDocumentHandler->characters("1"); + m_xDocumentHandler->characters("2"); m_xDocumentHandler->endElement("SignatureType"); m_xDocumentHandler->endElement("SignatureInfoV1"); |