Loading lib/http_digest.c +6 −4 Original line number Diff line number Diff line Loading @@ -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. * Loading Loading @@ -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]; Loading Loading @@ -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); Loading Loading @@ -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 lib/http_digest.h +1 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -46,7 +46,6 @@ CURLcode Curl_output_digest(struct connectdata *conn, bool proxy, const unsigned char *request, const unsigned char *uripath); void Curl_digest_cleanup_one(struct digestdata *dig); #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH) void Curl_digest_cleanup(struct SessionHandle *data); Loading Loading
lib/http_digest.c +6 −4 Original line number Diff line number Diff line Loading @@ -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. * Loading Loading @@ -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]; Loading Loading @@ -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); Loading Loading @@ -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
lib/http_digest.h +1 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -46,7 +46,6 @@ CURLcode Curl_output_digest(struct connectdata *conn, bool proxy, const unsigned char *request, const unsigned char *uripath); void Curl_digest_cleanup_one(struct digestdata *dig); #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH) void Curl_digest_cleanup(struct SessionHandle *data); Loading