1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
|
don't add -lssl etc if not needed (because we use system-postgresql)
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 0fc7d25..952b140 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -2911,9 +2917,10 @@ $(call gb_LinkTarget_add_libs,$(1),\
$(call gb_UnpackedTarball_get_dir,postgresql)/src/interfaces/libpq/libpq$(gb_StaticLibrary_PLAINEXT) \
)
-ifeq ($(OS),WNT)
$(call gb_LinkTarget_use_external,$(1),openssl)
+ifeq ($(OS),WNT)
+
$(call gb_LinkTarget_use_system_win32_libs,$(1),\
secur32 \
ws2_32 \
diff --git a/connectivity/Library_postgresql-sdbc-impl.mk b/connectivity/Library_postgresql-sdbc-impl.mk
index 0580a8b..7e8b778 100644
--- a/connectivity/Library_postgresql-sdbc-impl.mk
+++ b/connectivity/Library_postgresql-sdbc-impl.mk
@@ -46,7 +46,6 @@ $(eval $(call gb_Library_use_externals,postgresql-sdbc-impl,\
boost_headers \
postgresql \
$(if $(filter-out MSC,$(COM)), \
- openssl \
$(if $(ENABLE_LDAP),openldap) \
nss3 \
plc4 \
... and don't uselessly check for openssl in configure
diff --git a/config_host.mk.in b/config_host.mk.in
index ddd144e..19f8368 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -93,7 +93,6 @@ export DEFAULT_BRAND_IMAGES=@DEFAULT_BRAND_IMAGES@
export DICT_SYSTEM_DIR=@DICT_SYSTEM_DIR@
export DISABLE_CVE_TESTS=@DISABLE_CVE_TESTS@
export DISABLE_DYNLOADING=@DISABLE_DYNLOADING@
-export DISABLE_OPENSSL=@DISABLE_OPENSSL@
export DISABLE_PYTHON=@DISABLE_PYTHON@
export DLOPEN_LIBS=@DLOPEN_LIBS@
export DLLTOOL=@DLLTOOL@
@@ -438,8 +439,6 @@ export OOO_JUNIT_JAR=@OOO_JUNIT_JAR@
export BFFVALIDATOR=@BFFVALIDATOR@
export OOO_JUNIT_JAR=@OOO_JUNIT_JAR@
export OOO_VENDOR=@OOO_VENDOR@
-export OPENSSL_CFLAGS=$(gb_SPACE)@OPENSSL_CFLAGS@
-export OPENSSL_LIBS=$(gb_SPACE)@OPENSSL_LIBS@
export OPENSYMBOL_TTF=@OPENSYMBOL_TTF@
export ORCUS_CFLAGS=$(gb_SPACE)@ORCUS_CFLAGS@
export ORCUS_LIBS=$(gb_SPACE)@ORCUS_LIBS@
@@ -569,7 +568,6 @@ export SYSTEM_ODBC_HEADERS=@SYSTEM_ODBC_HEADERS@
export SYSTEM_ODBC_HEADERS=@SYSTEM_ODBC_HEADERS@
export SYSTEM_ODFGEN=@SYSTEM_ODFGEN@
export SYSTEM_OPENLDAP=@SYSTEM_OPENLDAP@
-export SYSTEM_OPENSSL=@SYSTEM_OPENSSL@
export SYSTEM_PAGEMAKER=@SYSTEM_PAGEMAKER@
export SYSTEM_POPPLER=@SYSTEM_POPPLER@
export SYSTEM_POSTGRESQL=@SYSTEM_POSTGRESQL@
diff --git a/configure.ac b/configure.ac
index 3862386..45d5e25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9422,67 +9422,6 @@ else
AC_MSG_RESULT([no])
fi
-dnl ===================================================================
-dnl Check for system openssl
-dnl ===================================================================
-DISABLE_OPENSSL=
-AC_MSG_CHECKING([whether to disable OpenSSL usage])
-if test "$enable_openssl" = "yes"; then
- AC_MSG_RESULT([no])
- if test "$_os" = Darwin ; then
- # OpenSSL is deprecated when building for 10.7 or later.
- #
- # http://stackoverflow.com/questions/7406946/why-is-apple-deprecating-openssl-in-macos-10-7-lion
- # http://stackoverflow.com/questions/7475914/libcrypto-deprecated-on-mac-os-x-10-7-lion
-
- with_system_openssl=no
- libo_CHECK_SYSTEM_MODULE([openssl],[OPENSSL],[openssl])
- elif test "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o "$_os" = "DragonFly" \
- && test "$with_system_openssl" != "no"; then
- with_system_openssl=yes
- SYSTEM_OPENSSL=TRUE
- OPENSSL_CFLAGS=
- OPENSSL_LIBS="-lssl -lcrypto"
- else
- libo_CHECK_SYSTEM_MODULE([openssl],[OPENSSL],[openssl])
- fi
- if test "$with_system_openssl" = "yes"; then
- AC_MSG_CHECKING([whether openssl supports SHA512])
- AC_LANG_PUSH([C])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <openssl/sha.h>]],[[
- SHA512_CTX context;
-]])],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([no, openssl too old. Need >= 0.9.8.])])
- AC_LANG_POP(C)
- fi
-else
- AC_MSG_RESULT([yes])
- DISABLE_OPENSSL=TRUE
-
- # warn that although OpenSSL is disabled, system libraries may depend on it
- AC_MSG_WARN([OpenSSL has been disabled. No code compiled here will make use of it but system libraries may create indirect dependencies])
- add_warning "OpenSSL has been disabled. No code compiled here will make use of it but system libraries may create indirect dependencies"
-fi
-
-AC_SUBST([DISABLE_OPENSSL])
-
-if test "$enable_cipher_openssl_backend" = yes && test "$DISABLE_OPENSSL" = TRUE; then
- if test "$libo_fuzzed_enable_cipher_openssl_backend" = yes; then
- AC_MSG_NOTICE([Resetting --enable-cipher-openssl-backend=no])
- enable_cipher_openssl_backend=no
- else
- AC_MSG_ERROR([--enable-cipher-openssl-backend needs OpenSSL, but --disable-openssl was given.])
- fi
-fi
-AC_MSG_CHECKING([whether to enable the OpenSSL backend for rtl/cipher.h])
-ENABLE_CIPHER_OPENSSL_BACKEND=
-if test "$enable_cipher_openssl_backend" = yes; then
- AC_MSG_RESULT([yes])
- ENABLE_CIPHER_OPENSSL_BACKEND=TRUE
-else
- AC_MSG_RESULT([no])
-fi
-AC_SUBST([ENABLE_CIPHER_OPENSSL_BACKEND])
-
dnl ===================================================================
dnl Check for building gnutls
dnl ===================================================================
.. and without these gbuild still wants it ...
diff --git a/external/Module_external.mk b/external/Module_external.mk
index 44280e3..44c1c63 100644
--- a/external/Module_external.mk
+++ b/external/Module_external.mk
@@ -82,7 +82,6 @@ $(eval $(call gb_Module_add_moduledirs,external,\
$(call gb_Helper_optional,NSS,nss) \
$(call gb_Helper_optional,ODFGEN,libodfgen) \
$(call gb_Helper_optional,OPENLDAP,openldap) \
- $(call gb_Helper_optional,OPENSSL,openssl) \
$(call gb_Helper_optional,ORCUS,liborcus) \
$(call gb_Helper_optional,OWNCLOUD_ANDROID_LIB,owncloud-android-lib) \
$(call gb_Helper_optional,PAGEMAKER,libpagemaker) \
diff --git a/oox/CppunitTest_oox_tokenmap.mk b/oox/CppunitTest_oox_tokenmap.mk
index 9eac2a5..ef6d5c9 100644
--- a/oox/CppunitTest_oox_tokenmap.mk
+++ b/oox/CppunitTest_oox_tokenmap.mk
@@ -20,19 +20,10 @@ $(eval $(call gb_CppunitTest_use_sdk_api,oox_tokenmap))
$(eval $(call gb_CppunitTest_use_library_objects,oox_tokenmap,oox))
-ifeq ($(TLS),OPENSSL)
-$(eval $(call gb_CppunitTest_use_externals,oox_tokenmap,\
- openssl \
- openssl_headers \
-))
-else
-ifeq ($(TLS),NSS)
$(eval $(call gb_CppunitTest_use_externals,oox_tokenmap,\
plc4 \
nss3 \
))
-endif
-endif
$(eval $(call gb_CppunitTest_use_libraries,oox_tokenmap,\
avmedia \
diff --git a/oox/Library_oox.mk b/oox/Library_oox.mk
index fcd7215..a178883 100644
--- a/oox/Library_oox.mk
+++ b/oox/Library_oox.mk
@@ -67,19 +67,10 @@ $(eval $(call gb_Library_use_externals,oox,\
boost_headers \
))
-ifeq ($(TLS),OPENSSL)
-$(eval $(call gb_Library_use_externals,oox,\
- openssl \
- openssl_headers \
-))
-else
-ifeq ($(TLS),NSS)
$(eval $(call gb_Library_use_externals,oox,\
plc4 \
nss3 \
))
-endif
-endif
$(eval $(call gb_Library_set_componentfile,oox,oox/util/oox))
diff --git a/ucb/CppunitTest_ucb_webdav_local_neon.mk b/ucb/CppunitTest_ucb_webdav_local_neon.mk
index 20e827b..9b869f9 100644
--- a/ucb/CppunitTest_ucb_webdav_local_neon.mk
+++ b/ucb/CppunitTest_ucb_webdav_local_neon.mk
@@ -34,7 +34,6 @@ $(eval $(call gb_CppunitTest_use_externals,ucb_webdav_local_neon,\
boost_headers \
libxml2 \
neon \
- openssl \
))
$(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_local_neon,\
diff --git a/ucb/Library_ucpdav1.mk b/ucb/Library_ucpdav1.mk
index 37f3c8f..2167dd2 100644
--- a/ucb/Library_ucpdav1.mk
+++ b/ucb/Library_ucpdav1.mk
@@ -30,7 +30,6 @@ $(eval $(call gb_Library_use_externals,ucpdav1,\
boost_headers \
libxml2 \
neon \
- openssl \
))
$(eval $(call gb_Library_use_custom_headers,ucpdav1,\
@@ -66,7 +65,6 @@ else # WITH_WEBDAV == serf
$(eval $(call gb_Library_use_externals,ucpdav1,\
boost_headers \
apr \
- openssl \
serf \
zlib \
))
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 0fc7d25..fe5a208 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -1525,75 +1525,6 @@ endif # ENABLE_HARFBUZZ
ifeq ($(DISABLE_OPENSSL),TRUE)
-gb_ExternalProject__use_openssl:=
-gb_LinkTarget__use_openssl_headers:=
-gb_LinkTarget__use_openssl:=
-
-else # !DISABLE_OPENSSL
-
-ifneq ($(SYSTEM_OPENSSL),)
-
-gb_LinkTarget__use_openssl_headers:=
-gb_ExternalProject__use_openssl:=
-
-define gb_LinkTarget__use_openssl
-$(call gb_LinkTarget_set_include,$(1),\
- $$(INCLUDE) \
- $(OPENSSL_CFLAGS) \
-)
-$(call gb_LinkTarget_add_libs,$(1),$(OPENSSL_LIBS))
-
-endef
-
-else # !SYSTEM_OPENSSL
-
-$(eval $(call gb_Helper_register_packages_for_install,ooo, \
- openssl \
-))
-
-define gb_ExternalProject__use_openssl
-$(call gb_ExternalProject_use_package,$(1),openssl)
-
-endef
-
-define gb_LinkTarget__use_openssl_headers
-$(call gb_LinkTarget_use_external_project,$(1),openssl)
-$(call gb_LinkTarget_set_include,$(1),\
- -I$(call gb_UnpackedTarball_get_dir,openssl)/include \
- $$(INCLUDE) \
-)
-
-endef
-
-define gb_LinkTarget__use_openssl
-$(call gb_LinkTarget_use_package,$(1),openssl)
-ifeq ($(OS),WNT)
-$(call gb_LinkTarget_add_libs,$(1),\
- $(call gb_UnpackedTarball_get_dir,openssl)/out32dll/ssleay32.lib \
- $(call gb_UnpackedTarball_get_dir,openssl)/out32dll/libeay32.lib \
-)
-else
-$(call gb_LinkTarget_add_libs,$(1),\
- $(call gb_UnpackedTarball_get_dir,openssl)/libssl.a \
- $(call gb_UnpackedTarball_get_dir,openssl)/libcrypto.a \
-)
-$(call gb_LinkTarget_use_external_project,$(1),openssl)
-ifeq ($(OS),SOLARIS)
-$(call gb_LinkTarget_add_libs,$(1),\
- -lnsl \
- -lsocket \
-)
-endif
-endif
-
-endef
-
-endif # SYSTEM_OPENSSL
-endif # DISABLE_OPENSSL
-
-
-ifeq ($(DISABLE_OPENSSL),TRUE)
-
define gb_LinkTarget__use_gnutls
$(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
diff --git a/ucb/CppunitTest_ucb_webdav_neon_opts.mk b/ucb/CppunitTest_ucb_webdav_neon_opts.mk
index 91e167b..21e5257 100644
--- a/ucb/CppunitTest_ucb_webdav_neon_opts.mk
+++ b/ucb/CppunitTest_ucb_webdav_neon_opts.mk
@@ -34,7 +34,6 @@ $(eval $(call gb_CppunitTest_use_externals,ucb_webdav_neon_opts,\
boost_headers \
libxml2 \
neon \
- openssl \
))
$(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_neon_opts,\
diff --git a/ucb/CppunitTest_ucb_webdav_propfindcache.mk b/ucb/CppunitTest_ucb_webdav_propfindcache.mk
index ebbaee7..e2d064e 100644
--- a/ucb/CppunitTest_ucb_webdav_propfindcache.mk
+++ b/ucb/CppunitTest_ucb_webdav_propfindcache.mk
@@ -34,7 +34,6 @@ $(eval $(call gb_CppunitTest_use_externals,ucb_webdav_propfindcache,\
boost_headers \
libxml2 \
neon \
- openssl \
))
$(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_propfindcache,\
diff --git a/ucb/CppunitTest_ucb_webdav_res_access.mk b/ucb/CppunitTest_ucb_webdav_res_access.mk
index ac48f87..c7d151e 100644
--- a/ucb/CppunitTest_ucb_webdav_res_access.mk
+++ b/ucb/CppunitTest_ucb_webdav_res_access.mk
@@ -34,7 +34,6 @@ $(eval $(call gb_CppunitTest_use_externals,ucb_webdav_res_access,\
boost_headers \
libxml2 \
neon \
- openssl \
))
$(eval $(call gb_CppunitTest_use_custom_headers,ucb_webdav_res_access,\
diff --git a/connectivity/Library_mysqlc.mk b/connectivity/Library_mysqlc.mk
index f765fb1e305f..0999b46d3eec 100644
--- a/connectivity/Library_mysqlc.mk
+++ b/connectivity/Library_mysqlc.mk
@@ -12,7 +12,6 @@ $(eval $(call gb_Library_Library,mysqlc))
$(eval $(call gb_Library_use_externals,mysqlc,\
boost_headers \
mariadb-connector-c \
- openssl \
))
$(eval $(call gb_Library_set_include,mysqlc,\
|