mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:34:45 +03:00
Access the user and passwd fields from the connectdata struct now instead
of the sessionhandle struct, as that was not good.
This commit is contained in:
parent
2f0bc9d1f7
commit
52b631fade
8 changed files with 69 additions and 50 deletions
|
|
@ -154,18 +154,18 @@ CURLcode Curl_output_digest(struct connectdata *conn,
|
|||
if(data->state.digest.algo == CURLDIGESTALGO_MD5SESS) {
|
||||
md5this = (unsigned char *)
|
||||
aprintf("%s:%s:%s:%s:%s",
|
||||
data->state.user,
|
||||
conn->user,
|
||||
data->state.digest.realm,
|
||||
data->state.passwd,
|
||||
conn->passwd,
|
||||
data->state.digest.nonce,
|
||||
data->state.digest.cnonce);
|
||||
}
|
||||
else {
|
||||
md5this = (unsigned char *)
|
||||
aprintf("%s:%s:%s",
|
||||
data->state.user,
|
||||
conn->user,
|
||||
data->state.digest.realm,
|
||||
data->state.passwd);
|
||||
conn->passwd);
|
||||
}
|
||||
Curl_md5it(md5buf, md5this);
|
||||
free(md5this); /* free this again */
|
||||
|
|
@ -202,7 +202,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
|
|||
"nonce=\"%s\", "
|
||||
"uri=\"%s\", "
|
||||
"response=\"%s\"\r\n",
|
||||
data->state.user,
|
||||
conn->user,
|
||||
data->state.digest.realm,
|
||||
data->state.digest.nonce,
|
||||
uripath, /* this is the PATH part of the URL */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue