diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2019-09-03 21:08:34 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-05-25 10:04:15 +0200 |
commit | b9353394f46e46485fd148f2842f0c1e8e5322e3 (patch) | |
tree | bf3dcc20cafbc00275c7154858379361b5147ff9 /oox/util | |
parent | package: ignore unknown encryption parameters. (diff) | |
download | core-b9353394f46e46485fd148f2842f0c1e8e5322e3.tar.gz core-b9353394f46e46485fd148f2842f0c1e8e5322e3.zip |
[MS-OFFCRYPTO] convert oox implementation into UNO service
To permit pluggable crypto services, abstract existing
implementation behind an XPackageEncryption API.
Previous code already had two halfway-polymorphic classes (agile and
standard 2007 engine), so we're not adding much additional layers.
As MS crypto always uses OLE storage to wrap content into one single
file, current implementation passes all substorage names down into
XPackageEncryption APi, so different downstream implementations (e.g.
for MS RMS, or Azure AIP) are possible.
Because OleStorage classes are internal to LibO core, access is provided
via XInput/XOutput stream API function.
Change-Id: Icc32a4e0ce215090c3b739f1dcaa0654b36b7f08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/84436
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'oox/util')
-rw-r--r-- | oox/util/oox.component | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/oox/util/oox.component b/oox/util/oox.component index 32a8100b8fb8..ef54da9a11e2 100644 --- a/oox/util/oox.component +++ b/oox/util/oox.component @@ -40,4 +40,8 @@ constructor="com_sun_star_comp_oox_ShapeContextHandler_get_implementation"> <service name="com.sun.star.xml.sax.FastShapeContextHandler"/> </implementation> + <implementation name="com.sun.star.comp.oox.crypto.StrongEncryptionDataSpace" + constructor="com_sun_star_comp_oox_crypto_StrongEncryptionDataSpace_get_implementation"> + <service name="com.sun.star.packages.PackageEncryption"/> + </implementation> </component> |