mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:03:52 +03:00
setopt: fix to honor CURLOPT_PROXY_CAINFO_BLOB over Native CA
In AppleSecTrust or NativeCA-enabled builds, make sure override it when setting a custom `CURLOPT_PROXY_CAINFO_BLOB`. Reported-by: Joshua Rogers (Aisle Research) Follow-up to1730407b74#18279 Follow-up toeefd03c572#18703 Closes #21631
This commit is contained in:
parent
3f8f725d97
commit
c46a7913e5
1 changed files with 3 additions and 1 deletions
|
|
@ -2842,8 +2842,10 @@ static CURLcode setopt_blob(struct Curl_easy *data, CURLoption option,
|
|||
* Specify entire PEM of the CA certificate
|
||||
*/
|
||||
#ifdef USE_SSL
|
||||
if(Curl_ssl_supports(data, SSLSUPP_CAINFO_BLOB))
|
||||
if(Curl_ssl_supports(data, SSLSUPP_CAINFO_BLOB)) {
|
||||
s->proxy_ssl.custom_cablob = TRUE;
|
||||
return Curl_setblobopt(&s->blobs[BLOB_CAINFO_PROXY], blob);
|
||||
}
|
||||
#endif
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
case CURLOPT_PROXY_ISSUERCERT_BLOB:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue