Skip to content

setopt: fix to honor CURLOPT_PROXY_CAINFO_BLOB over Native CA#21631

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:proxycablob
Closed

setopt: fix to honor CURLOPT_PROXY_CAINFO_BLOB over Native CA#21631
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:proxycablob

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented May 15, 2026

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 to 1730407 #18279
Follow-up to eefd03c #18703

In AppleSecTrust or NativeCA-enabled builds, make sure override
it when setting a custom `CURLOPT_PROXY_CAINFO_BLOB`.

Reported-by: Joshua Rogers (Aisle Research)
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes proxy TLS trust configuration so that when an application sets CURLOPT_PROXY_CAINFO_BLOB, it is treated as a custom CA source and therefore takes precedence over auto-enabled Native CA store behavior in AppleSecTrust / CURL_CA_NATIVE builds.

Changes:

  • Mark data->set.proxy_ssl.custom_cablob when handling CURLOPT_PROXY_CAINFO_BLOB, mirroring the existing behavior for CURLOPT_CAINFO_BLOB.
  • Ensure Native CA auto-enable logic can correctly detect that a custom CA blob was provided for proxy TLS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/setopt.c
Comment on lines +2837 to +2840
if(Curl_ssl_supports(data, SSLSUPP_CAINFO_BLOB)) {
s->proxy_ssl.custom_cablob = TRUE;
return Curl_setblobopt(&s->blobs[BLOB_CAINFO_PROXY], blob);
}
@vszakats vszakats added Windows Windows-specific appleOS specific to an Apple operating system labels May 15, 2026
@vszakats vszakats closed this in c46a791 May 16, 2026
@vszakats vszakats deleted the proxycablob branch May 16, 2026 09:57
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
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 to 1730407 curl#18279
Follow-up to eefd03c curl#18703

Closes curl#21631
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system connecting & proxies TLS Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

3 participants