summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-04-28 18:04:14 +0200
committerJan Holesovsky <kendy@collabora.com>2021-01-07 16:32:54 +0100
commit2f16880998e8b396231b8dc6e41206b93aedc65b (patch)
treef802cceb3290cd96b44f7ac87f7a1c476e5d3e34 /xmlsecurity
parentd59afaf9762f808333b3819649cd57b3326d45a7 (diff)
officecfg,unotools,cui: add ODF 1.2 Extended / ODF 1.3 versions
... to configuration and UI. The new default is ODF 1.3 Extended, which is now ODFVER_LATEST and stored as value "3" in configuration. Adapt a few places related to DocumentDigitalSignatures etc. to new default. Change-Id: I420da4f7787cc864c6bd88470d61b146b9399aa1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93177 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/qa/unit/signing/signing.cxx10
-rw-r--r--xmlsecurity/source/component/documentdigitalsignatures.cxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/xmlsecurity/qa/unit/signing/signing.cxx b/xmlsecurity/qa/unit/signing/signing.cxx
index 5952baf60974..d25b87fdd7f3 100644
--- a/xmlsecurity/qa/unit/signing/signing.cxx
+++ b/xmlsecurity/qa/unit/signing/signing.cxx
@@ -1125,14 +1125,14 @@ CPPUNIT_TEST_FIXTURE(SigningTest, testPreserveMacroTemplateSignature12_ODF)
// the loaded document is a OTT with a valid macro signature
assertDocument(CPPUNIT_SOURCELINE(), "writer8_template", SignatureState::NOSIGNATURES,
- SignatureState::OK, ODFVER_012_TEXT);
+ SignatureState::OK, ODFVER_013_TEXT);
// load saved ODT document
createDoc(aTempFileSaveAsODT.GetURL());
// the loaded document is a ODT with a macro signature
assertDocument(CPPUNIT_SOURCELINE(), "writer8", SignatureState::NOSIGNATURES,
- SignatureState::OK, ODFVER_012_TEXT);
+ SignatureState::OK, ODFVER_013_TEXT);
// save as new OTT template
utl::TempFile aTempFileSaveAsODT_OTT;
@@ -1159,7 +1159,7 @@ CPPUNIT_TEST_FIXTURE(SigningTest, testPreserveMacroTemplateSignature12_ODF)
// the loaded document is a OTT with a valid macro signature
assertDocument(CPPUNIT_SOURCELINE(), "writer8_template", SignatureState::NOSIGNATURES,
- SignatureState::OK, ODFVER_012_TEXT);
+ SignatureState::OK, ODFVER_013_TEXT);
}
/// Test if a macro signature from an OTT 1.0 is dropped for ODT 1.2
@@ -1215,7 +1215,7 @@ CPPUNIT_TEST_FIXTURE(SigningTest, testDropMacroTemplateSignature)
// the loaded document is a 1.2 ODT without any signatures
assertDocument(CPPUNIT_SOURCELINE(), "writer8", SignatureState::NOSIGNATURES,
- SignatureState::NOSIGNATURES, ODFVER_012_TEXT);
+ SignatureState::NOSIGNATURES, ODFVER_013_TEXT);
// load the template as-is to validate signatures
mxComponent->dispose();
@@ -1253,7 +1253,7 @@ CPPUNIT_TEST_FIXTURE(SigningTest, testDropMacroTemplateSignature)
// the loaded document is a 1.2 OTT without any signatures
assertDocument(CPPUNIT_SOURCELINE(), "writer8_template", SignatureState::NOSIGNATURES,
- SignatureState::NOSIGNATURES, ODFVER_012_TEXT);
+ SignatureState::NOSIGNATURES, ODFVER_013_TEXT);
}
class Resetter
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx
index 801b44c1bade..2cd338cdc3e2 100644
--- a/xmlsecurity/source/component/documentdigitalsignatures.cxx
+++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx
@@ -218,7 +218,7 @@ public:
DocumentDigitalSignatures::DocumentDigitalSignatures( const Reference< XComponentContext >& rxCtx ):
mxCtx(rxCtx),
- m_sODFVersion(ODFVER_012_TEXT),
+ m_sODFVersion(ODFVER_013_TEXT),
m_nArgumentsCount(0),
m_bHasDocumentSignature(false)
{