Skip to content

tool_operate: only check for schannel if on windows - #22552

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/is-schannel
Closed

bagder wants to merge 2 commits into
masterfrom
bagder/is-schannel

Conversation

@bagder

@bagder bagder commented Aug 12, 2026

Copy link
Copy Markdown
Member

It can never be true elsewhere.

Reported-by: Max Dymond

It can never be true elsewhere.

Reported-by: Max Dymond
@bagder
bagder marked this pull request as ready for review August 12, 2026 08:55
@bagder
bagder requested a lite review from Copilot August 12, 2026 08:55

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.

Pull request overview

This PR avoids performing a runtime TLS-backend probe for Schannel on non-Windows platforms by compiling a trivial is_using_schannel() stub when _WIN32 is not defined, since Schannel cannot be selected there.

Changes:

  • Wrap is_using_schannel() in #ifdef _WIN32 and provide a non-Windows implementation that always returns “not using Schannel”.
  • Preserve existing behavior on Windows (including cached detection via curl_easy_getinfo(..., CURLINFO_TLS_SSL_PTR, ...)).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bagder bagder closed this in cd238bb Aug 12, 2026
@bagder
bagder deleted the bagder/is-schannel branch August 12, 2026 09:02
vszakats added a commit that referenced this pull request Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants