libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 0601a3bf713a1f196927f7a381cce56ebbf8aa04
parent fe670ad8b5b3732d66037779e7bbfd97de104059
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 16 Jul 2011 20:43:02 +0000

fix nonce type

Diffstat:
MChangeLog | 5+++++
Msrc/daemon/digestauth.c | 4++--
Msrc/daemon/internal.h | 2+-
3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 16 22:42:10 CEST 2011 + Change type of nonce to 'unsigned long int' to match return type + from 'strtoul'. Fixes ERANGE check which would have previously + failed. -CG + Wed Jul 13 09:26:17 CEST 2011 Fixing HTTP error status strings for certain high-numbered status codes. Added support for some more (non-standard) status codes. diff --git a/src/daemon/digestauth.c b/src/daemon/digestauth.c @@ -297,7 +297,7 @@ lookup_sub_value(char *dest, static int check_nonce_nc (struct MHD_Connection *connection, const char *nonce, - unsigned int nc) + unsigned long int nc) { uint32_t off; uint32_t mod; @@ -461,7 +461,7 @@ MHD_digest_auth_check(struct MHD_Connection *connection, uint32_t nonce_time; uint32_t t; size_t left; /* number of characters left in 'header' for 'uri' */ - unsigned int nci; + unsigned long int nci; header = MHD_lookup_connection_value(connection, MHD_HEADER_KIND, diff --git a/src/daemon/internal.h b/src/daemon/internal.h @@ -119,7 +119,7 @@ struct MHD_NonceNc * Nonce counter, a value that increases for each subsequent * request for the same nonce. */ - unsigned int nc; + unsigned long int nc; /** * Nonce value: