mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +03:00
creds: add sasl service name
The SASL service name, used in authentication, is part of curl's credentials when authenticating to a server/proxy. Make it part of `struct Curl_creds`. Change code to use `creds` to obtain a service name. By tying creds used to the connection, connection reuse is also only allowed when the service name matches. Closes #21585
This commit is contained in:
parent
b2476a0712
commit
5e99b73cf4
24 changed files with 98 additions and 79 deletions
|
|
@ -1079,7 +1079,7 @@ process_state:
|
|||
case SOCKS5_ST_GSSAPI_INIT: {
|
||||
#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
|
||||
/* GSSAPI stuff done non-blocking */
|
||||
CURLcode result = Curl_SOCKS5_gssapi_negotiate(cf, data);
|
||||
CURLcode result = Curl_SOCKS5_gssapi_negotiate(cf, data, sx->creds);
|
||||
if(result) {
|
||||
failf(data, "Unable to negotiate SOCKS5 GSS-API context.");
|
||||
return CURLPX_GSSAPI;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue