mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:13:33 +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
|
|
@ -38,7 +38,8 @@ static bool t1304_set_creds(const char *user, const char *passwd,
|
|||
{
|
||||
Curl_creds_unlink(pcreds);
|
||||
if(user || passwd)
|
||||
return !Curl_creds_create(user, passwd, NULL, NULL, CREDS_NONE, pcreds);
|
||||
return !Curl_creds_create(user, passwd, NULL, NULL, NULL, CREDS_NONE,
|
||||
pcreds);
|
||||
else
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue