summaryrefslogtreecommitdiff
path: root/lib/http_digest.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-07-19 23:56:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-07-19 23:56:33 +0000
commit52b631fadecb5ff5f038badfd79055e7d4272927 (patch)
tree27e4b5c01914b8fab19f458b124fffe8455211b2 /lib/http_digest.c
parent2f0bc9d1f74236bec433d0681f9893db6f22694e (diff)
downloadcurl-52b631fadecb5ff5f038badfd79055e7d4272927.tar.gz
Access the user and passwd fields from the connectdata struct now instead
of the sessionhandle struct, as that was not good.
Diffstat (limited to 'lib/http_digest.c')
-rw-r--r--lib/http_digest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/http_digest.c b/lib/http_digest.c
index 51bcb8450..1e1c6826d 100644
--- a/lib/http_digest.c
+++ b/lib/http_digest.c
@@ -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 */