Skip to content

cmake: fix CURL_WINDOWS_SSPI=ON with Schannel disabled - #13061

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:cmake-sspi-fix
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:cmake-sspi-fix

Conversation

@vszakats

@vszakats vszakats commented Mar 6, 2024 •

Copy link
Copy Markdown
Member

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

vszakats added 2 commits March 6, 2024 11:47
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.

2 participants