Commit Graph
35 Commits
Author SHA1 Message Date
Miklos Vajna 89fa5e45c3 xmlsecurity: fold Library_xsec_fw into Library_xmlsecurity
That little amount of code hardly justifies a separate library.

Change-Id: Idbb039f38258bc12759fcf6d29328e1afe7443ab
Reviewed-on: https://gerrit.libreoffice.org/49391
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2018-02-08 09:06:57 +01:00
Gautam Prajapati 511ae02c64 Android: Enable HAVE_FEATURE_NSS and package the NSS libraries with apk
This commit enables HAVE_FEATURE_NSS for Android and fixes the svl/ vcl/
and xmlsecurity/ module to use NSS.

xmlsecurity/ wasn't built for Android previously, this commit enables
building xmlsecurity/ for Android and disables the support of gpgme
in the same module(Only for Android).

It also enables the linking of NSS shared libraries with
liblo-native-code.so and adds a rule to package them along with the apk.

Change-Id: I7d0341688ac979ae92e9145c37dd107670417fe1
Reviewed-on: https://gerrit.libreoffice.org/41308
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-23 17:50:55 +02:00
Caolán McNamara 00657aef09 migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl
* all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string")
* ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching
  MODULE .mo files
* UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui
  goes from l10n target to normal one, so the res/lang.zips of UI files go away
* translation via Translation::get(hrc-define-key, imbued-std::locale)
* python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there
  to keep finding the .hrc file uniform) so magic numbers can go away there
* java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation
  mechanism
* en-US res files go away, their strings are now the .hrc keys in the source code
* remaining .res files are replaced by .mo files
* in .res/.ui-lang-zip files, the old scheme missing translations of strings
  results in inserting the english original so something can be found, now the
  standard fallback of using the english original from the source key is used, so
  partial translations shrink dramatically in size
* extract .hrc strings with hrcex which backs onto
   xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap
* extract .ui strings with uiex which backs onto
   xgettext --add-comments --no-wrap
* qtz for gettext translations is generated at runtime as ascii-ified crc32 of
   content + "|" + msgid
* [API CHANGE] remove deprecated binary .res resouce loader related uno apis
      com::sun::star::resource::OfficeResourceLoader
      com::sun::star::resource::XResourceBundleLoader
      com::sun::star::resource::XResourceBundle
    when translating strings via uno apis
      com.sun.star.resource.StringResourceWithLocation
    can continue to be used

Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-07-21 08:20:50 +01:00
Thorsten Behrens 06d7dbb356 gpg4libre: share static xmlsec lib between nss and gpg
In the end, the gpgme implementation uses enough of xmlsec
functionality that splitting those (and ending up with two copies)
was just not worth it.

Change-Id: Ida87c848e4e6a770e3c697add9ceb589a9ec3930
2017-06-21 22:16:55 +02:00
Caolán McNamara a0effa00b4 revert 'tweak for pdfiumless build'
commit 8d747b8cf8
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Sat Apr 29 20:01:40 2017 +0100

    tweak for pdfiumless build

and lets see if

commit 6f53cf281e
Author: Markus Mohrhard <markus.mohrhard@googlemail.com>
Date:   Sat Apr 29 05:11:40 2017 +0200

    apparently the executable does not need pdfium directly anymore

is sufficient here

Change-Id: I2bf381e1d51d851aa829730b3d13edb1c03ea873
2017-05-02 09:50:26 +01:00
Caolán McNamara 8d747b8cf8 tweak for pdfiumless build
Change-Id: Ic83f0e0491bede43dba7f22c5bd6c31b95e65df1
2017-04-29 20:04:23 +01:00
Miklos Vajna 834df8b3d1 xmlsecurity pdfverify: go via vcl graphic filter
Initially some proof of concept code was implemented here, but then I
copied that to VCL and it got fixes there, so call into vcl from here
instead of invoking pdfium directly.

Change-Id: I8590cbe94876ff6aff3f870535a99062304f3996
Reviewed-on: https://gerrit.libreoffice.org/37016
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-04-27 12:57:21 +02:00
Thorsten Behrens 59460acff8 Fix build for mobile
Change-Id: I420035cec4f3d5f56363eab1fabff5c053c60cd6
2017-03-04 12:15:09 +01:00
Samuel Mehrbrodt 88ac77c0bc gpg4libre: List and view GPG keys
* Add GPG implementation of css::xml::crypto UNO interfaces (part of that is only stub atm)
* List gpg keys along with other certificates
* Viewing gpg certificates: Not all properties are implemented yet

Change-Id: I7f60b26efe949a94bf8fe1b8d4d428002c2995b1
Reviewed-on: https://gerrit.libreoffice.org/33843
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-03-04 10:26:43 +00:00
Caolán McNamara 55e203a0c6 add --disable-pdfium
Change-Id: I9137dc0030c3c752ffc0931721bf6b0013309d39
2017-02-10 14:03:37 +00:00
Caolán McNamara 8092d344fa use new ENABLE_NSS for code which needs nss
which isn't available on a static-only build (iOS and fuzzing) and
android

Change-Id: I99bb7c0b45d4499579ddf73f469a762ddcae99ab
Reviewed-on: https://gerrit.libreoffice.org/32182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-12-20 14:20:47 +00:00
Tor Lillqvist 48e956e506 Try to fix Android and iOS build
Fix what probably is fallout from
a7c35729e0.

Just bypass all of xmlsecurity for Android and iOS. At least the iOS
demo app, TiledLibreOffice, builds then.

Change-Id: Ibc9486c0d67d1aeafa08932809b23ceeb9b5c2f3
2016-12-15 16:46:48 +02:00
Miklos Vajna 8aab6cbba0 xmlsecurity: add PDF sign unit-test
If the NSS binary files ever need re-generating, it's just a copy from a
fresh Firefox user profile, after importing
'example-xmlsecurity-Alice.cert.p12', as produced by
'./create-certs.sh'.

Change-Id: Iabe15a816cb674d1691e3ff3e10aa2bd851f8e0d
Reviewed-on: https://gerrit.libreoffice.org/30126
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-10-21 12:05:05 +00:00
Miklos Vajna 53bba96ac0 xmlsecurity: add initial Executable_pdfverify
We have code to verify ODF and OOXML signatures, this adds initial
support for verifying a PDF signature.

Initially this is a standalone executable, need to turn this into a unit
test + hook it into sfx2 in follow-up commits.

Change-Id: Ideb5ec63f761c74fd4527cf1766b0aa739e275ee
2016-10-12 16:50:31 +02:00
Armin Le Grand ce6cbf86a5 screenshots: add new global make target
Up to now the screenshot creation was added/dependent of
target slowcheck. Since quite some modules have added screenshot
creations now, I added an own target 'screenshot' to allow to keep
current slowcheck and screenshot creation separated

Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
2016-08-18 02:39:15 +02:00
Armin Le Grand 51cd1024a6 screenshots: add dialog test cases for xmlsecurity
All *.ui files create a screenshot, but not all look useful

Change-Id: I5ae156d76d4b0b53a8c5a9950afdbc42d8e66b73
2016-08-18 02:39:15 +02:00
Miklos Vajna 29137eef25 CppunitTest_xmlsecurity_signing: fix and enable on Windows
Change-Id: Ie107afbb6b2499f445670b50bf214cb91d6b1cac
2016-01-12 09:35:47 +01:00
Miklos Vajna d76b4682aa CppunitTest_xmlsecurity_signing: disable on Windows for now
Change-Id: Icc0d11cfe421d6328739211511379a39195436b9
2016-01-11 16:29:05 +01:00
Miklos Vajna 5322c76a52 xmlsecurity: initial CppunitTest_xmlsecurity_signing
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-11 15:46:10 +01:00
Tor Lillqvist 9c1d7724ad We hardly want xsec stuff for iOS if not for Android either
Change-Id: I483e2ac92b1fcd7176dd71534cf1c2623ce5a651
2015-09-19 19:14:31 +03:00
Tor Lillqvist 3442b004e6 Now that we build NSS, we can build libxmlsec and libxsec_xmlsec for iOS, too
Change-Id: I65ab8aad0744a2aa254fefc7732cd8130bb249fb
2014-08-12 17:03:31 +03:00
Takeshi Abe 541761d7b8 prefer makefile-gmake-mode
Change-Id: I9cc9bfbddd3a90e00eee3e674994e5d6207f9034
2014-04-28 23:35:42 +09:00
Bjoern Michaelsen 78c7eb3507 uiconfig is a l10n-relevant target
Change-Id: I8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06
2013-12-16 17:36:26 +01:00
Bjoern Michaelsen 04dead1c6b make l10n buildable separately
- this renames the 'almost' module target to non-l10n
- and adds a l10n target which is intended to only build l10n parts of
  the product
- packagers should then be able to build l10n and non-l10n parts of the
  product independently, thus:
   - enable quicker rebuilds
   - distribution of load
   - updates to l10n without a full rebuild
   - security fixes to binaries without rebuilding all l10n
- the new targets are called build-l10n-only and build-non-l10n-only
- note this is not intended to move a concept of split packages
  upstream -- while this exsists in distros, the number of test
  scenarios for this would explode upstream

Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863

Conflicts:
	filter/Module_filter.mk
2013-11-14 16:45:02 +01:00
Michael Meeks 72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
David Tardon ed72983131 rename UI to UIConfig
I plan to use it to deliver all */uiconfig files, not just .ui, as a
preliminary step to get rid of postprocess/packconfig.

Change-Id: Ie7b4434b2f247165e3ab69a4d0c193418720a149
Reviewed-on: https://gerrit.libreoffice.org/3225
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-11 03:37:30 +00:00
Caolán McNamara 2e00c0efbe move xmlsecurity .ui stuff to right place and adapt code to use it
Change-Id: If1f3dbbbef07004ec02a65563524c6c17dc16c00
2013-01-01 16:15:58 +00:00
Stephan Bergmann d72568fc7d Fix condition
Change-Id: I746778a0d0f229c65dca37bcf3fdae9dcebd4340
2012-08-14 14:47:20 +02:00
Caolán McNamara ee93dfafdd drop disable-xmlsec, it's core functionality, have to live with it
we basically need this functionality, the idea of it being optional
isn't really logical anymore with nss split out from mozilla.

for iOS and Android where they doesn't build yet spit out lame fixme
nag warnings

Change-Id: I4b16c62553b12d3dcd340a0b5c5a4cbd807c2f02
2012-08-14 12:47:27 +01:00
Jan Holesovsky a1c23a44b9 Fix the --disable-xmlsec build. 2011-11-03 21:07:04 +01:00
Tomas Chvatal f6f5c89259 Rename --enable-nss-module to --with-system-nss + introduce --enable-xmlsec.
This also finishes the uncoupling of NSS from the --with-system-mozilla.
2011-11-02 17:37:53 +01:00
Caolán McNamara aa584559a8 Related: fdo#40420 always include xmlsecurity library for macro-security
the xmlsecurity library contains the dialogs and resources for the
macro-security dialog as well as the xml signing UI. So always
build and include this library unconditionally.
2011-09-08 09:29:31 +01:00
David Tardon 590e2e2f9b fix condition for building libxsec_xmlsec 2011-08-11 13:11:50 +02:00
Matúš Kukan ed4393f649 process also resource files 2011-08-10 15:57:25 +02:00
Matúš Kukan 8b0e9caca9 convert xmlsecurity to gbuild 2011-08-09 23:28:06 +02:00