Skip to content

openssl: avoid CA caching for providers - #23453

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/ca-cache-provider
Closed

bagder wants to merge 1 commit into
masterfrom
bagder/ca-cache-provider

Conversation

@bagder

@bagder bagder commented Oct 17, 2026

Copy link
Copy Markdown
Member

No description provided.

@bagder bagder added the TLS label Oct 17, 2026
@bagder
bagder requested a balanced review from Copilot October 17, 2026 17:16
@bagder
bagder marked this pull request as ready for review October 17, 2026 17:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow guard covers cache reuse and insertion without changing non-provider behavior.

No open issues 🎉

What changed in this PR

Prevents OpenSSL CA-store caching for provider contexts so cached certificates cannot outlive their provider library context.

Changes:

  • Adds provider-context detection.
  • Disables cache reuse and insertion for provider contexts while preserving existing caching otherwise.
File Description
lib/​vtls/​openssl.c Excludes provider contexts from CA-store caching.

Review effort: Balanced

@bagder bagder closed this in 2c5f9c8 Oct 17, 2026
@bagder
bagder deleted the bagder/ca-cache-provider branch October 17, 2026 17:21
dkarpov1970 pushed a commit to dkarpov1970/curl that referenced this pull request Nov 18, 2026
Closes curl#23453

Backport notes:

- USING_PROVIDER() takes data: the release keeps the provider libctx
  in data->state.libctx and creates the SSL_CTX under it.

- Drift in Curl_ssl_setup_x509_store(): CRLfile and native_ca_store
  come from ssl_config.

(cherry picked from commit 2c5f9c8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants