Files
Miklos Vajna 50d9606fcf ucb curl: don't verify peer in the isExemptVerifyHost() case
Try to insert a https:// image URL into Writer when the URL's host is
meant to be not verified, 'curl -k' works with the URL but insertion in
Writer still fails.

Turns out this is an expired self-signed certificate (in a local test
env). Mechanism for not verifying SSL certs in the curl session was
added in commit 2a5c998d4c (allow an
exemption to be made for a specific host, 2024-08-23), but that results
in an image insertion failure.

Fix the problem by adapting the ucb/ code to do what
<https://github.com/curl/curl/blob/470e26ff6eb55e8d18d6fa44104834e9d1f71274/src/config2setopts.c#L375>
does for 'curl -k', also clear the CURLOPT_SSL_VERIFYPEER option.

With this, inserting https:// images from my local test server works
again in Writer.

Change-Id: I0c52f6c0c0dfd6ebf0b4081a8088b623935a96f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197093
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 2dcc1c95b5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197131
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-01-13 08:57:35 +01:00
..
2025-09-02 16:16:22 +02:00
2024-08-06 22:31:35 +02:00