]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: fix `CURL_WINDOWS_SSPI=ON` with Schannel disabled
authorViktor Szakats <commit@vsz.me>
Wed, 6 Mar 2024 11:43:40 +0000 (11:43 +0000)
committerViktor Szakats <commit@vsz.me>
Thu, 7 Mar 2024 00:23:20 +0000 (00:23 +0000)
commited97fe06acb27f66b6b8eff1f9669166e0bb9f50
tree6cf0a0971064d0f31ece335bd1eed1092fbe6fd4
parent2ea178ace71e6747e7c2af1e1251440afc0294a8
cmake: fix `CURL_WINDOWS_SSPI=ON` with Schannel disabled

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
Reviewed-by: Daniel Stenberg
Ref: #13056
Closes #13061
CMakeLists.txt