]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
doh: inherit new custom ssl flags
authorStefan Eissing <stefan@eissing.org>
Fri, 3 Oct 2025 12:15:04 +0000 (14:15 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Oct 2025 15:53:25 +0000 (17:53 +0200)
The new custom_* flags in the SSL config need to be inherited when
setting up the doh easy handle, so that defaults apply the same way as
for the original easy handle.

Closes #18831

lib/doh.c

index a76f42207d60a355d69e01cc83225b82db61038f..15e01357b82cbbc0faf4f674ecd9af6237712515 100644 (file)
--- a/lib/doh.c
+++ b/lib/doh.c
@@ -377,6 +377,9 @@ static CURLcode doh_probe_run(struct Curl_easy *data,
      options should be added to check doh proxy insecure separately,
      CURLOPT_DOH_PROXY_SSL_VERIFYHOST and CURLOPT_DOH_PROXY_SSL_VERIFYPEER.
      */
+  doh->set.ssl.custom_cafile = data->set.ssl.custom_cafile;
+  doh->set.ssl.custom_capath = data->set.ssl.custom_capath;
+  doh->set.ssl.custom_cablob = data->set.ssl.custom_cablob;
   if(data->set.str[STRING_SSL_CAFILE]) {
     ERROR_CHECK_SETOPT(CURLOPT_CAINFO,
                        data->set.str[STRING_SSL_CAFILE]);