summaryrefslogtreecommitdiff
path: root/xmlsecurity
AgeCommit message (Collapse)Author
2016-01-26-Werror,-Wsign-compare (clang-cl)Stephan Bergmann
Change-Id: Ib4ed6a89d8da6dd15c3931b0fb92a2ddf7576171
2016-01-25xmlsecurity: implement OOXML stream referencesMiklos Vajna
With this, if see an URI like: /_rels/.rels?ContentType=application/vnd.openxmlformats-package.relationships+xml Then it is properly detected that it's the .rels stream of the _rels storage, and UriBindingHelper will serve that stream (when looked up by name later) to libxmlsec. Change-Id: Iac62cb170c0aa8bb92c40311fb7b248e96c25dde
2016-01-25xmlsecurity: enable libxmlsec error callbackMiklos Vajna
Change-Id: I9d3dd7c425723337d36fdf9f9e761398616d289d
2016-01-20xmlsecurity: import OOXML <SignatureComments>Miklos Vajna
This is the signature purpose on the MSO UI, our signature description. Change-Id: I7609c427cded96249ccdec24cd9d43e3e99be3d9
2016-01-19xmlsecurity: import OOXML <mdssi:Value>Miklos Vajna
That stores the signature timestamp, and that now immediately shows up in DigitalSignaturesDialog as well. Change-Id: I83a63a10cf946f47a03e4570c461a92512638600
2016-01-19xmlsecurity: handle OOXML signatures in ImplGetSignatureInformations()Miklos Vajna
With this, DigitalSignaturesDialog correctly shows the "Signed by" field when reading a single valid OOXML signature. Change-Id: Ic52a56767f65ab30924b07073d31677cb3a27de5
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