Repository navigation
|
Hi, Our Until now (version 8.20 included) we set What changed
The docs for What is the supported way to tell libcurl to use no CA file at all in 8.21.0, at runtime? Thank you |
Replies: 3 comments 5 replies
|
Your reading of the change is right, and the mechanism is a flag that NULL can no longer set.
case CURLOPT_CAINFO:
result = Curl_setstropt(&s->str[STRING_SSL_CAFILE], ptr);
s->ssl.custom_cafile = !!s->str[STRING_SSL_CAFILE];
return result;
#ifdef CURL_CA_BUNDLE
if(!sslc->custom_cafile && !set->str[STRING_SSL_CAFILE]) {
result = Curl_setstropt(&set->str[STRING_SSL_CAFILE], CURL_CA_BUNDLE);Both halves are false after your NULL, so That contradiction is the strongest thing to put in a report. For an immediate unblock, the lever you have is that flag: anything non-NULL sets Note |
I think that's the solution, yes, if you don't want to bake-in |
I submitted #23202 to see what @bagder has to say but he's away right now so it may hang for a while.