summaryrefslogtreecommitdiff
path: root/xmlsecurity/qa
AgeCommit message (Collapse)AuthorFilesLines
2016-04-04Use std::size_tMiklos Vajna1-8/+8
And include <cstddef> where necessary. Change-Id: Icc1208528d6a8b04375d55ccbf3cd6ef046b454f Reviewed-on: https://gerrit.libreoffice.org/23796 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-03-16CppunitTest_xmlsecurity_signing: fix typo in testODFBroken()Miklos Vajna1-1/+1
On a system where the certificate can be validated, the expected result is OK, not PARTIAL_OK (copy&paste problem from OOXML). Change-Id: I1b52921498de24c9a14a780bf48b791ec1e0c706
2016-03-14com::sun::star->css in xmlsecurity/Noel Grandin1-1/+1
Change-Id: I4b89f97671ab526e5731d2f1f99802e23f3fd4b5
2016-03-11CppunitTest_xmlsecurity_signing: add ODF verification testcasesMiklos Vajna3-0/+34
Change-Id: I08734b7841fc83b327ebbf5c8ae43f7969e94e12
2016-03-11xmlsecurity: add missing CSP switch to certificate generator scriptMiklos Vajna1-1/+2
Without this the generated .p12 test file can't be used for SHA2 signing on Windows, as xmlsec.git's README points out. Change-Id: Ib97a337eca3b92dde5e0ccadee7420c492a8971c
2016-03-10Extract Directories from BootstrapFixtureBaseStephan Bergmann1-6/+6
(as some tests derive from the latter only for the Directories part, not for the setUp/tearDown overrides: those tests will be cleaned up next) Change-Id: Ib6b78eea868b8bc21d4cc6e8fd9e1d025deca05f Reviewed-on: https://gerrit.libreoffice.org/23078 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-09Indentation fixesMiklos Vajna1-2/+2
Change-Id: I536ab12cfedb6dae605af2f29a7a9b34fad06ba0
2016-03-07xmlsecurity: check that osl::File::copy actually succeedsMichael Stahl1-2/+4
... which it doesn't, currently. Change-Id: I0280a11006afb08b95ff643e8b999b4e5a733d2d
2016-03-07CppunitTest_xmlsecurity_signing: add remove all testcaseMiklos Vajna1-0/+46
Fails without the previous commit. Change-Id: I7606b9a5ef3509077b1a3a6e884f0e2bb4c79614
2016-03-07CppunitTest_xmlsecurity_signing: avoid modifying tracked test documentMiklos Vajna1-1/+6
Without this, running the test modified xmlsecurity/qa/unit/signing/data/partial.docx. Change-Id: I3dd5cb6c90037fce0c550be9b1c189959b848ebe
2016-03-07tdf#97703 removed empty setUp/tearDown methodsChirag Manwani1-10/+0
Change-Id: I244d481bce4723d172e26c0d31aab0a541334604 Reviewed-on: https://gerrit.libreoffice.org/22959 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-04CppunitTest_xmlsecurity_signing: add signature removal testcaseMiklos Vajna2-0/+28
Fails with the previous commit reverted. Change-Id: I050a03fa923980e46b31eff457d0b83f6c38ceaf
2016-03-04CppunitTest_xmlsecurity_signing: add signature append testcaseMiklos Vajna1-1/+30
Fails with e.g. commit 963264a417ce807201f0021fc6000ce7d6cf0245 (xmlsecurity OOXML export: don't loose old signatures when adding a new one, 2016-03-03) reverted. Change-Id: Ia2b0f3d8914bca14075481f5ac8cd4c0033d26c1
2016-02-29sfx2 classification: don't sort items on the toolbar listboxMiklos Vajna1-1/+1
Assuming the policy follows a least-confidential -> most-confidential order, doing a lexicographical sort on the category names does more harm than good. So use a vector instead of a name-indexed map for categories. Also, don't duplicate the label map for the current state, but just store the state in the same category structure that is used for other (currently not used) categories as well. Change-Id: I1672192e572abfc22b6aeeb152ee7484086cea91
2016-02-26Spurious "typename"Stephan Bergmann1-2/+1
Change-Id: Ic6e31ba0c542f0347b95f3930a13670acbc4f61f
2016-02-26Improve failure outputStephan Bergmann1-2/+12
Change-Id: Ia542ab0644611ff8e36c8b52138e1ef064972606
2016-02-15CppunitTest_xmlsecurity_signing: add OOXML description roundtrip testMiklos Vajna1-0/+35
Fails when the relevant part of XSecController::exportOOXMLSignature() is commented out, i.e. the member function just writes a <Signature> XML element, no child elements. Change-Id: I526c1170c8ada71f111a1ad56d74af1a4102dbce Reviewed-on: https://gerrit.libreoffice.org/22375 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-02-15CppunitTest_xmlsecurity_signing: use DocumentSignatureManagerMiklos Vajna1-64/+20
Change-Id: I97acb4a2e9aedb15671d65f6995faeab4ff5716f
2016-02-04CppunitTest_xmlsecurity_signing: add invalid OOXML testcaseMiklos Vajna2-0/+14
Test the case when the manifest reference has invalid hash: this is the more complex situation. A simple situation is when a direct (non-manifest) reference is broken. Change-Id: Iaea139abc460050768cfbc236cacb1fd94418b36
2016-02-04CppunitTest_xmlsecurity_signing: add valid OOXML testcaseMiklos Vajna2-3/+24
In reality we can't detect that it's partially signed, as the unit test doesn't have a mozilla profile -> certificate validation fails -> we only know that the signature is valid. Change-Id: Ib6aaccb4cb471e543d368d0318b90c67e9876619
2016-01-12CppunitTest_xmlsecurity_signing: enable on OS XMiklos Vajna1-4/+0
Reviewed on: https://gerrit.libreoffice.org/21395 Change-Id: I4f96b322b0306a10d7d47d3b71db9b0716575fe4
2016-01-12CppunitTest_xmlsecurity_signing: fix and enable on WindowsMiklos Vajna1-1/+1
Change-Id: Ie107afbb6b2499f445670b50bf214cb91d6b1cac
2016-01-11xmlsecurity: initial CppunitTest_xmlsecurity_signingMiklos Vajna2-0/+223
Fails with either commit 88cbfe58c4a36c20bdb2445f43043f0a5a006ee3's last hunk to xsecctl.cxx (export) or commit a968893e6afd3b79c6c048962373859cea75a77b's last hunk to xsecparser.cxx (import) reverted. Change-Id: I0f303c8489f451ebf175ed836d3679b6a13aca42
2016-01-05xmlsecurity: add script to create test certificatesMiklos Vajna3-0/+428
Change-Id: I9280cec602e15e3ae478911360ff7ce68d460474
2014-05-19fix-includes.pl: xmlsecurityThomas Arnhold1-6/+6
Change-Id: Ie3dd8674e1fa927d15eeb6a64a0cad24b8825262
2013-06-29remove some createFromAscii usageThomas Arnhold1-5/+5
there are a lot more of them: git grep 'createFromAscii[^)]*"' Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák1-16/+16
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2012-11-05fdo#46808, Adapt xml::crypto::SEInitializer UNO service to new styleNoel Grandin1-4/+2
Also create an NSSInitializer service IDL and split it's interfaces out from SEInitializer. It looks like this was the intention all along, but someone took a shortcut. Change-Id: I53ac1cb5d38b78b6718fe22c9666eae1f194a3b7
2012-07-17re-base on ALv2 code. Includes:Michael Meeks1-26/+17
retain presence of MPL licensed nssrenam.h symbol renamer.
2012-06-27targetted re-work of cppunit pieces.Michael Meeks1-3/+0
2011-11-27remove include of pch header from xmlsecurityNorbert Thiebaud1-1/+0
2011-09-30add mode-lines to .m files and last round of merged files, etc.Caolán McNamara1-0/+3
2011-09-12sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed ↵Stephan Bergmann1-1/+6
out a6913c9677c2 For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-08-09convert xmlsecurity to gbuildMatúš Kukan3-109/+1
2011-05-27Merge remote-tracking branch 'origin/integration/dev300_m106'Jan Holesovsky4-0/+450
Conflicts: extensions/source/svg/svgaction.cxx extensions/source/svg/svguno.cxx package/source/xstor/owriteablestream.cxx package/source/xstor/xstorage.cxx package/source/zippackage/ZipPackageStream.cxx setup_native/source/win32/customactions/shellextensions/registerextensions.cxx wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.java
2011-02-14tkr38: #i112307# fix nss test run and clean up sourcesTobias Krause2-198/+146
2011-02-03tkr38: #i112307# Support for x509 v3 Subject Alternative Name extension addedTobias Krause4-0/+502