Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: fix CURL_WINDOWS_SSPI=ON with Schannel disabled #13061

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Mar 6, 2024

Prior to this change CURL_WINDOWS_SSPI was accidentally forced
OFF when building without the Schannel TLS backend.

This in turn may have caused Kerberos, SPNEGO and SSPI features
disappearing even with CURL_WINDOWS_SSPI=ON set.

This patch fixes it by using the CURL_USE_SCHANNEL setting as a
default for CURL_WINDOWS_SSPI, but allowing a manual override.

Also update the option text to better tell its purpose.

Thanks-to: Andreas Loew
Ref: #13056
Closes #13061

Prior to this change `CURL_WINDOWS_SSPI` was accidentally forced
`OFF` when building without the Schannel TLS backend.

This in turn may have caused Kerberos, SPNEGO and SSPI features
disappearing even with `CURL_WINDOWS_SSPI=ON` set.

This patch fixes it by using the `CURL_USE_SCHANNEL` setting as a
default for `CURL_WINDOWS_SSPI`, but allowing a manual override.

Ref: curl#13056
Closes #xxxxx
@vszakats vszakats added cmake Windows Windows-specific labels Mar 6, 2024
@github-actions github-actions bot added the build label Mar 6, 2024
vszakats added a commit to curl/curl-for-win that referenced this pull request Mar 6, 2024
After disabling MultiSSL (due to HTTP/3 incompatibility) and
Schannel with it, Kerberos/SPNEGO/SSPI feature were gone, because
they depended on the SSPI build option which got its default from
the Schannel-enabler option.

A related issue is that the SSPI build option `BUILD_WINDOWS_SSPI`
is broken, up until 8.6.0, so we use a workaround until merging
the fix upstream and switching to a clean solution for 8.7.0.

Depends on curl/curl#13061 for 8.7.0.

Reported-by: Andreas Loew
Fixes curl/curl#13056
@vszakats vszakats requested a review from jay March 6, 2024 12:41
@vszakats vszakats changed the title cmake: fix CURL_WINDOWS_SSPI=ON option with Schannel disabled cmake: fix CURL_WINDOWS_SSPI=ON with Schannel disabled Mar 6, 2024
@vszakats vszakats closed this in ed97fe0 Mar 7, 2024
@vszakats vszakats deleted the cmake-sspi-fix branch March 7, 2024 00:24
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.

None yet

2 participants