summaryrefslogtreecommitdiffstats
path: root/sal/CppunitTest_sal_rtl.mk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-08-22 09:49:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-08-23 20:39:39 +0200
commit4bc16aeb73c1201f187742e0fefe35521fae77ac (patch)
treec3324a63b842682ad53c1cb4fa7b2581c661e468 /sal/CppunitTest_sal_rtl.mk
parentRelated rhbz#1618703: Properly handle failure encoding MS file (diff)
downloadcore-4bc16aeb73c1201f187742e0fefe35521fae77ac.tar.gz
core-4bc16aeb73c1201f187742e0fefe35521fae77ac.zip
rhbz#1618703: Allow to use OpenSSL as backend for rtl/cipher.h
...with new configuration option --enable-cipher-openssl-backend rtl/cipher.h (which is part of the stable URE interface) offers functionality to en-/decrypt data with Blowfish in ECB, CBC, and streaming CFB mode, and with RC4 (aka ARCFOUR; which is a stream cipher). LO itself only uses Blowfish CFB and RC4, so only those are wired to OpenSSL for now, for simplicity. Using Blowfish ECB and CBC, or Blowfish CFB in DirectionBoth mode would cause failures for now (cf. sal/qa/rtl/cipher/rtl_cipher.cxx); the assumption is that no external code actually makes use of this functionality. Using NSS instead of OpenSSL could be an alternative, but there appears to be no support in NSS for Blowfish in streaming CFB mode, only CKM_BLOWFISH_CBC for CBC mode. Change-Id: I0bc042961539ed46844c96cb1c808209578528a0 Reviewed-on: https://gerrit.libreoffice.org/59428 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/CppunitTest_sal_rtl.mk')
-rw-r--r--sal/CppunitTest_sal_rtl.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/CppunitTest_sal_rtl.mk b/sal/CppunitTest_sal_rtl.mk
index 43533fc5ab1c..c2eaa72daa26 100644
--- a/sal/CppunitTest_sal_rtl.mk
+++ b/sal/CppunitTest_sal_rtl.mk
@@ -63,4 +63,8 @@ $(call gb_CppunitTest_get_target,sal_rtl) : \
$(eval $(call gb_CppunitTest_use_external,sal_rtl,boost_headers))
+ifeq ($(ENABLE_CIPHER_OPENSSL_BACKEND),TRUE)
+$(eval $(call gb_CppunitTest_add_defs,sal_rtl,-DLIBO_CIPHER_OPENSSL_BACKEND))
+endif
+
# vim: set noet sw=4 ts=4: