summaryrefslogtreecommitdiffstats
path: root/onlineupdate/source/libmar
Commit message (Collapse)AuthorAgeFilesLines
* fix off by one errorMarkus Mohrhard2018-11-181-1/+1
| | | | | | | | | BLRG-PT-18-004 Change-Id: I9cd2582aebf2b33d40f23254047c35c8dee90f4b Reviewed-on: https://gerrit.libreoffice.org/63508 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* onlineupdate: work around GCC7 -Werror=implicit-fallthroughMichael Stahl2017-09-131-0/+1
| | | | | | This is pretty stupid, but oh well... Change-Id: I1e605b2858a917f61922df757809a2aceb14a914
* updater: get the signature verification working on WindowsMarkus Mohrhard2017-07-311-2/+2
| | | | | | | | | | | The updater itself does not link to NSS on Windows and instead uses the Windows-internal crypto libraries. However the mar executable needs to link against NSS, so we need to split the code a bit. Change-Id: Iea61c716aa507a876fdb444eb28ad828bdea18bd Reviewed-on: https://gerrit.libreoffice.org/40608 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* updater: remove unnecessary mozilla makefileMarkus Mohrhard2017-07-281-9/+0
| | | | | | | Change-Id: Ia0162482841854cc4cb5c2b004bc978809bdf4c2 Reviewed-on: https://gerrit.libreoffice.org/40534 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Wdeclaration-after-statementMarkus Mohrhard2017-05-191-1/+2
| | | | Change-Id: Ie3a34305c824e2f04feb8b1db39c0df342588c43
* use a more libreoffice like formattingMarkus Mohrhard2017-05-192-14/+16
| | | | | | | | This formatting has been done by an astyle script. The idea is that with a consistent formatting it is much easier to bring in changes from Mozilla. Updating the code with the new version, running the astyle script and then looking through the diff seems like the most sensible option.
* fix more platform define checksMarkus Mohrhard2017-05-191-0/+4
| | | | Change-Id: I2e125770fc6c21141c45ccc057d95fada8ccf74c
* disable warning 4204Markus Mohrhard2017-05-191-0/+5
| | | | | | nonstandard extension used Change-Id: I7d24417dfb14fa659e50c36889bedee406ce9401
* store the correct version string in the updater and the mar executableMarkus Mohrhard2017-05-191-4/+6
| | | | Change-Id: I52ca969b9fa84320614f77bd51b8aac736478c54
* add a way to create mar file from fileMarkus Mohrhard2017-05-191-1/+36
| | | | | | | | | We exceed the command line limit when we try to use the stuff directly so storing it in a file seems like the best approach. Currently the memory that we allocate in the new code path is leaked but as the program ends a bit later anyway this is not too bad. Change-Id: I87350c617e577a319ce4be37cbd707011c0bd502
* fix unitialized memoryMarkus Mohrhard2017-05-191-1/+1
| | | | Change-Id: I743df0c568984a1effef34be5a3190a10647e092
* temp windows fixesMarkus Mohrhard2017-05-191-1/+1
| | | | Change-Id: I86972657e333821a153bb0c1e154f22841f624e5
* Fix typosAndrea Gelmini2017-03-251-1/+1
| | | | | | | Change-Id: I14dca0d55c09187690dc1d94936c40b890ca5cea Reviewed-on: https://gerrit.libreoffice.org/35637 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* Remove __cplusplus-checks from apparently-C++-only filesStephan Bergmann2016-07-131-4/+0
| | | | | | | Change-Id: I87e9ce45cf945e75e8140a9d4608da8abcddada6 Reviewed-on: https://gerrit.libreoffice.org/27187 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* tdf#98602 Duplicate code in onlineupdate/Ras-al-Ghul2016-06-1317-2940/+14
| | | | | | | | | | | Converted libmar into static library and removed duplicate code. Change-Id: I51c58ae9a6a1f1128422b4a79491d0cd62e6ced6 Reviewed-on: https://gerrit.libreoffice.org/23312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
* Fix typosAndrea Gelmini2016-04-301-1/+1
| | | | | | | Change-Id: Id81b16ff26283611f0b84929d831c827f847ab73 Reviewed-on: https://gerrit.libreoffice.org/24317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* use consistent #define checks for the Windows platformNoel Grandin2016-02-1710-23/+23
| | | | | | | | | | | | stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use consistent #define checks for the Windows platformNoel Grandin2016-02-162-2/+2
| | | | | | | | | | stage 1 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro Change-Id: Iece73abdee530937e0737190b1aa97a46cd3075f Reviewed-on: https://gerrit.libreoffice.org/22390 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* Fix typosAndrea Gelmini2016-02-051-1/+1
| | | | | | | Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
* Fix typosAndrea Gelmini2016-01-102-2/+2
| | | | | | | Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
* onlineupdate: -Werror=unused-but-set-variableMichael Stahl2015-11-042-6/+4
| | | | Change-Id: I136eb25d2831cdbd3f1ce81714039cbd28b16577
* onlineupdate: -Werror=unused-variableMichael Stahl2015-11-041-0/+2
| | | | | | There are actually 2 identical copies of the file in onlineupdate! WTF? Change-Id: I967bd90045ca0f56db151dd82d3baf8e848a8863
* cppcheck:variableScopeNoel Grandin2015-10-123-5/+3
| | | | | | | Change-Id: I037feb335499629300309851dcda3bb661f03d4f Reviewed-on: https://gerrit.libreoffice.org/19316 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Fix typosAndrea Gelmini2015-09-301-5/+5
| | | | | | | Change-Id: I013414cf10e25acd5216643855aaa230258a1b5f Reviewed-on: https://gerrit.libreoffice.org/18962 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* Add the needed #ifndef instead of removing the variable.Jan Holesovsky2015-08-121-0/+3
| | | | | | This reverts commit 058c924c9385d003eefa728be7b23b2effd73913. Change-Id: I0418af18177cef350b2bf13008ed54336c54938c
* cppcheck: arrayIndexThenCheckCaolán McNamara2015-08-101-1/+1
| | | | Change-Id: I66dc4dd095d4e1a9d963b1c2c6a99b16d9f9bf61
* cppcheck: unusedVariableCaolán McNamara2015-08-101-1/+0
| | | | Change-Id: I11e9a952fdb401e08d6095fc36f0eb2dba6e2917
* online update: Fix many warnings.Jan Holesovsky2015-07-226-5/+12
| | | | | | Not all yet, though. Change-Id: Ic4f0fe3ded31d585faefd8bda8ab87f54b88dc6c
* online update tdf#68274: fix --enable-online-update=mar on WindowsNathan Yee2015-07-2211-29/+29
| | | | Change-Id: I397566ae2488799399cad361b24a281d3599cc5b
* online update: Remove unneeded files.Nathan Yee2015-07-034-144/+0
| | | | Change-Id: Id69448d893f7492e7321c6c6f84d6cccc9024220
* online update: Add mar executable build supportNathan Yee2015-06-2910-2/+2546
| | | | | | | | | | Remove unneeded mar library build support Add macro workarounds in mar.c; will deal with them in the future Change PL_strdup to strdup (is this safe?) Change-Id: Ib3108abdf360f6fc1ccc1bf5030df8529d724b82
* online update: MAR-based online update - initial import from Mozilla.Jan Holesovsky2015-06-2923-0/+4827
This commit copies several source files around the Mozilla's online update from the Mozilla sources to LibreOffice. The hope is that we will be able to modify it so that LibreOffice can use the same update mechanism as Firefox, including downloading the packs on background, and applying them on the next start. changeset: 248917:ce863f9d8864 The following locations in the Mozzila sources were copied: firefox/modules/libmar -> onlineupdate/source/libmar firefox/toolkit/mozapps/update -> onlineupdate/source/update JavaScript parts were omitted. Change-Id: I0c92dc0bf734bfd5d8746822f674e162d64fa62f