summaryrefslogtreecommitdiff
path: root/xmlsecurity
AgeCommit message (Collapse)Author
2016-01-18loplugin: unused return values in writerfilter/Noel Grandin
Change-Id: I048fba90319bd164ddd7bf0078b4615092d5f33a Reviewed-on: https://gerrit.libreoffice.org/21567 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-14xmlsecurity: import OOXML <X509Certificate>Miklos Vajna
Change-Id: I051b3b0f69567cf7bcf4837ab6ccda221142b49e
2016-01-14xmlsecurity: import OOXML <SignatureValue>Miklos Vajna
Change-Id: I96479457d6740ec69bddbf3feabd3c1dc815f197
2016-01-14xmlsecurity: implement XInitialization for OOXMLSecParserMiklos Vajna
addSignature() can't be called without this, as later it'll try to examine the keeped SAX events, which are expected to be remembered by the next handler. Change-Id: Id6677fff791cc65e514e43fba169fc2f71a69e33
2016-01-14xmlsecurity: import OOXML <DigestValue>Miklos Vajna
Change-Id: I2ca893aba65a9b9ffd5ffaddbcb6accc13fca755
2016-01-13xmlsecurity: import OOXML <Reference>Miklos Vajna
Only non-stream ones as a start. Change-Id: Ifacf391e78463004c17106905019ec2ed3430efe
2016-01-13xmlsecurity: import OOXML <SignedInfo>Miklos Vajna
Change-Id: I5591b33b41fdfe2e84a6462d0d2db5304cb909cb
2016-01-13xmlsecurity: import OOXML <Signature>Miklos Vajna
Change-Id: I5925440347c04b2fff243261ba677c718d8fc312
2016-01-13xmlsecurity: initial OOXMLSecParserMiklos Vajna
Change-Id: Idba2eb384756e72c8b60cb2e810110d6b95b66ad
2016-01-13xmlsecurity: refactor to allow multiple signature parser implementationsMiklos Vajna
Change-Id: I1d1ae4a0bf41b89fe2f8db9b44d3b0b7a0dfd1cd
2016-01-13xmlsecurity: initial XMLSignatureHelper::ReadAndVerifySignatureStorageStream()Miklos Vajna
Change-Id: Ida3f77a763c55a7ec8a52a3de4521d18a952e752
2016-01-13xmlsecurity: read OOXML signature relationsMiklos Vajna
Change-Id: I9d2f6e6285e3db6c72d298a7d0b4ebb321936506
2016-01-13xmlsecurity: don't assume the signature is always a single streamMiklos Vajna
Change-Id: I07ce23d698fea9338a85b086a5a3c3418e8c8290
2016-01-12CppunitTest_xmlsecurity_signing: enable on OS XMiklos Vajna
Reviewed on: https://gerrit.libreoffice.org/21395 Change-Id: I4f96b322b0306a10d7d47d3b71db9b0716575fe4
2016-01-12xmlsecurity: handle no META-INF in DocumentSignatureHelperMiklos Vajna
Change-Id: I7e0ac2d43e97fe9cb67a58c8dd8d83c1068f501d
2016-01-12xmlsecurity: gracefully handle lack of META-INF storage streamMiklos Vajna
Change-Id: Ic0b33f7b014ea7cfb16cc1babb69f2d2b6ba8dee
2016-01-12CppunitTest_xmlsecurity_signing: fix and enable on WindowsMiklos Vajna
Change-Id: Ie107afbb6b2499f445670b50bf214cb91d6b1cac
2016-01-11CppunitTest_xmlsecurity_signing: disable on Windows for nowMiklos Vajna
Change-Id: Icc0d11cfe421d6328739211511379a39195436b9
2016-01-11xmlsecurity: missing boost dependencyMiklos Vajna
Change-Id: Ida3a34fb74e4f956f865c8a52bdcf63811e290cc
2016-01-11xmlsecurity: initial CppunitTest_xmlsecurity_signingMiklos Vajna
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-11xmlsecurity: mark two classes as public to be able to unit-test themMiklos Vajna
Change-Id: I64dbf379a2d01ff46c5c32655958c63b04d86895
2016-01-11PCH support on LinuxAshod Nakashian
Fixes and improvements to support Precompiled Headers on Linux. Change-Id: I8145c146b0dba56c7a4d0fdf9c330164b67ada53 Reviewed-on: https://gerrit.libreoffice.org/21307 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-06xmlsecurity: allow creating multiple signatures with the same certificateMiklos Vajna
Now that the user can provide a description of the signature, it makes sense to allow multiple signatures from the same user, assuming that the descriptions explain the purpose of the different signatures. Change-Id: I2cd4680594732d6b40dc3ffbcb6b4a9a6ca87919
2016-01-06xmlsecurity: add UI to provide a description when signingMiklos Vajna
Change-Id: I6fdbcb342d06e05b4965ccf7f593ac130426828a
2016-01-05xmlsecurity: show signature description in DigitalSignaturesDialogMiklos Vajna
Change-Id: Ic98c731eb381ee3b6ff198381b63e48b786e3fe6
2016-01-05xmlsecurity: convert TYPE_...__REFERENCE constants to scoped enumMiklos Vajna
Change-Id: Ic2248b3bc6460e65bdf4eb30af4f8893a7f0e68d
2016-01-05xmlsecurity: indentation fixesMiklos Vajna
Change-Id: I2125d23a535891c0269f12e5abfbe72fa5422393
2016-01-05xmlsecurity: handle description in XSecController::prepareSignatureToWrite()Miklos Vajna
With this, if DigitalSignaturesDialog sets a signature description, then that becomes part of the signed content. This is backwards-compatible in two ways: 1) When the description is empty, the output is not changed. 2) When parsing, the description is optional: we only require that if its hash is mentioned in the signed content, then the string matches its hash; but omitting both the string and its hash is OK. Change-Id: I82db5beea16bd325558a86201dc902d35543ed0a
2016-01-05xmlsecurity: parse dc:description in XSecParserMiklos Vajna
With this, the description is written in the XML file, DigitalSignaturesDialog doesn't set it yet, though. Change-Id: I54a73d6fbdf8ed936714a21ba1df5998849fd1fa
2016-01-05xmlsecurity: add XMLSignatureHelper::SetDescription()Miklos Vajna
First step to be able to add a comment while signing a document. Change-Id: I8f7ab95de5015b723481e94bd72585caf754288f
2016-01-05xmlsecurity: add script to create test certificatesMiklos Vajna
Change-Id: I9280cec602e15e3ae478911360ff7ce68d460474
2015-12-21loplugin:unusedfields in xmlscript,xmlsecurityNoel Grandin
Change-Id: I5239766f2105fb1a7823215a4ffe48891e000c3d
2015-12-11No need for a separate <vcl/graph.h>Tor Lillqvist
Change-Id: I962544005b5d408f7c044a02eefe09b87d8a81fe
2015-12-10Undef RGB where it was defined, not where it gets usedStephan Bergmann
Change-Id: I274958964292f78c802748e17fca7f265ae5a4b8 Reviewed-on: https://gerrit.libreoffice.org/20429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-12-04Wingdi RGB macro handling improvedAshod Nakashian
Improved the isolation of windows headers. Specifically, RGB macro is better handled now. Change-Id: I0eeea16d0de9da3455810c80b0715f7b54ae8c3f Reviewed-on: https://gerrit.libreoffice.org/20039 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-11-28-Werror,-Wwritable-stringsStephan Bergmann
Change-Id: Iba3e60522acc5ef6ee4b9211c68c7f7317c9c4a9
2015-11-28-Werror,-Wunused-variableStephan Bergmann
Change-Id: I98523b403f2497acfcf49baede87448636ff2709
2015-11-28-Werror,-WreorderStephan Bergmann
Change-Id: I4e9b0752653f705dc7292838555cc3d429a983d1
2015-11-28-Werror,-Wwritable-stringsStephan Bergmann
Change-Id: I396b617ea844c63f4e85ff4e26dd8a631281815b
2015-11-28-Werror,-Wunused-functionStephan Bergmann
Change-Id: I3a39ca3a653f16799be1c4cc598f3b9e127e0569
2015-11-27xmlsecurity: fix DrMemory warningMichael Stahl
Presumably that was the intent? Change-Id: Ibfca90041d6913827d2f329bab448afe4d725b46
2015-11-27xmlsecurity: remove some dead code that is guaranteed to crashMichael Stahl
Fortunately currently XMLSEC_NO_XSLT is defined anyway, but better remove it. Change-Id: I1dd2aa57356274dacc99cc7def2d308884263289
2015-11-24loplugin:unusedfields in xmlsecurity/Noel Grandin
Change-Id: I11bb62b0c90de361b7cd06608e77483786750ebb
2015-11-18remove unused typedefs and inline use-once typedefsNoel Grandin
and improve the script a little Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84 Reviewed-on: https://gerrit.libreoffice.org/20033 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I2093e93e07ff19a1a1d2c8b6f221dac2bf2a2613
2015-11-09new loplugin: oncevarNoel Grandin
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>