mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:43:34 +03:00
spnego_sspi: add support for channel binding
Attempt to add support for Secure Channel binding when negotiate authentication is used. The problem to solve is that by default IIS accepts channel binding and curl doesn't utilise them. The result was a 401 response. Scope affects only the Schannel(winssl)-SSPI combination. Fixes https://github.com/curl/curl/issues/3503 Closes https://github.com/curl/curl/pull/3509
This commit is contained in:
parent
463f16d188
commit
a730432e59
5 changed files with 49 additions and 8 deletions
|
|
@ -89,6 +89,11 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||
}
|
||||
}
|
||||
|
||||
/* Supports SSL channel binding for Windows ISS extended protection */
|
||||
#if defined(USE_WINDOWS_SSPI) && defined(SECPKG_ATTR_ENDPOINT_BINDINGS)
|
||||
neg_ctx->sslContext = conn->sslContext;
|
||||
#endif
|
||||
|
||||
/* Initialize the security context and decode our challenge */
|
||||
result = Curl_auth_decode_spnego_message(data, userp, passwdp, service,
|
||||
host, header, neg_ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue