aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-05-22 22:38:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-05-22 22:38:46 +0000
commit9f69deec7d071fbad247574b2fec9263bc020954 (patch)
tree9022dfdb72a6156704fd8e5fc9df0498f1659c6f
parente912f772e020a7167dcf71463a7430a7222916d3 (diff)
Added CURLOPT_HTTPDIGEST support
SOCKS5 fix as suggested by Jis in bugreport #741841.
-rw-r--r--lib/url.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index cc6b64748..89f316530 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -226,6 +226,8 @@ CURLcode Curl_close(struct SessionHandle *data)
if(data->info.contenttype)
free(data->info.contenttype);
+ Curl_digest_cleanup(data);
+
free(data);
return CURLE_OK;
}
@@ -838,6 +840,12 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
data->set.encoding = (char*)ALL_CONTENT_ENCODINGS;
break;
+ case CURLOPT_HTTPDIGEST:
+ /*
+ * Enable HTTP Digest Authentication
+ */
+ data->set.httpdigest = va_arg(param, long);
+ break;
case CURLOPT_USERPWD:
/*
* user:password to use in the operation
@@ -1535,7 +1543,7 @@ static int handleSock5Proxy(
return 1;
}
- if ((socksreq[0] != 5) || /* version */
+ if ((socksreq[0] != 1) || /* version */
(socksreq[1] != 0)) { /* status */
failf(conn->data, "User was rejected by the SOCKS5 server (%d %d).",
socksreq[0], socksreq[1]);