mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:33:31 +03:00
auth: cleanups
- rename `req->proxyuserpwd` to `req->hd_proxy_auth` - rename `req->userpwd` to `req->hd_auth` - rename parameter `proxytunnel` to `is_connect` for Curl_http_output_auth() - move path+query concatenation into Curl_http_output_auth(), saving an alloc when no auth is in play - rename `H1_HD_USER_AUTH` into `H1_HD_AUTH` Closes #21513
This commit is contained in:
parent
71a5725563
commit
fdd27a538c
12 changed files with 100 additions and 113 deletions
|
|
@ -91,7 +91,7 @@ CURLcode Curl_output_digest(struct Curl_easy *data,
|
|||
return CURLE_NOT_BUILT_IN;
|
||||
#else
|
||||
digest = &data->state.proxydigest;
|
||||
allocuserpwd = &data->req.proxyuserpwd;
|
||||
allocuserpwd = &data->req.hd_proxy_auth;
|
||||
userp = data->state.aptr.proxyuser;
|
||||
passwdp = data->state.aptr.proxypasswd;
|
||||
authp = &data->state.authproxy;
|
||||
|
|
@ -99,7 +99,7 @@ CURLcode Curl_output_digest(struct Curl_easy *data,
|
|||
}
|
||||
else {
|
||||
digest = &data->state.digest;
|
||||
allocuserpwd = &data->req.userpwd;
|
||||
allocuserpwd = &data->req.hd_auth;
|
||||
userp = data->state.aptr.user;
|
||||
passwdp = data->state.aptr.passwd;
|
||||
authp = &data->state.authhost;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue