summaryrefslogtreecommitdiff
path: root/lib/http_digest.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-06-03 19:54:17 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-06-03 19:54:17 +0200
commitadeac15d8e1946fd2e3df9c7abebe8823437fc3c (patch)
tree3720870d8a625e970a155bca7955ae2e8f63825c /lib/http_digest.c
parent5d4e5593d5178a716b21c74648077171c7192905 (diff)
downloadcurl-adeac15d8e1946fd2e3df9c7abebe8823437fc3c.tar.gz
digest_cleanup_one: made private
Diffstat (limited to 'lib/http_digest.c')
-rw-r--r--lib/http_digest.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/http_digest.c b/lib/http_digest.c
index 7fc84cd2e..c3a39fcee 100644
--- a/lib/http_digest.c
+++ b/lib/http_digest.c
@@ -49,6 +49,8 @@
#define MAX_VALUE_LENGTH 256
#define MAX_CONTENT_LENGTH 1024
+static void digest_cleanup_one(struct digestdata *dig);
+
/*
* Return 0 on success and then the buffers are filled in fine.
*
@@ -156,7 +158,7 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
before = TRUE;
/* clear off any former leftovers and init to defaults */
- Curl_digest_cleanup_one(d);
+ digest_cleanup_one(d);
for(;;) {
char value[MAX_VALUE_LENGTH];
@@ -539,7 +541,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
return CURLE_OK;
}
-void Curl_digest_cleanup_one(struct digestdata *d)
+static void digest_cleanup_one(struct digestdata *d)
{
if(d->nonce)
free(d->nonce);
@@ -573,8 +575,8 @@ void Curl_digest_cleanup_one(struct digestdata *d)
void Curl_digest_cleanup(struct SessionHandle *data)
{
- Curl_digest_cleanup_one(&data->state.digest);
- Curl_digest_cleanup_one(&data->state.proxydigest);
+ digest_cleanup_one(&data->state.digest);
+ digest_cleanup_one(&data->state.proxydigest);
}
#endif