mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
doh: inherit new custom ssl flags
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
This commit is contained in:
parent
e73759f1a9
commit
733c994b1e
@ -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]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user