aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-16 20:43:02 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-16 20:43:02 +0000
commit0601a3bf713a1f196927f7a381cce56ebbf8aa04 (patch)
tree5563235c0e7dd9008efa2db8ee530394e290d318
parentfe670ad8b5b3732d66037779e7bbfd97de104059 (diff)
downloadlibmicrohttpd-0601a3bf713a1f196927f7a381cce56ebbf8aa04.tar.gz
libmicrohttpd-0601a3bf713a1f196927f7a381cce56ebbf8aa04.zip
fix nonce type
-rw-r--r--ChangeLog5
-rw-r--r--src/daemon/digestauth.c4
-rw-r--r--src/daemon/internal.h2
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a2c6bd0..07bf703e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
1Sat Jul 16 22:42:10 CEST 2011
2 Change type of nonce to 'unsigned long int' to match return type
3 from 'strtoul'. Fixes ERANGE check which would have previously
4 failed. -CG
5
1Wed Jul 13 09:26:17 CEST 2011 6Wed Jul 13 09:26:17 CEST 2011
2 Fixing HTTP error status strings for certain high-numbered status codes. 7 Fixing HTTP error status strings for certain high-numbered status codes.
3 Added support for some more (non-standard) status codes. 8 Added support for some more (non-standard) status codes.
diff --git a/src/daemon/digestauth.c b/src/daemon/digestauth.c
index 00612e35..29b81e28 100644
--- a/src/daemon/digestauth.c
+++ b/src/daemon/digestauth.c
@@ -297,7 +297,7 @@ lookup_sub_value(char *dest,
297static int 297static int
298check_nonce_nc (struct MHD_Connection *connection, 298check_nonce_nc (struct MHD_Connection *connection,
299 const char *nonce, 299 const char *nonce,
300 unsigned int nc) 300 unsigned long int nc)
301{ 301{
302 uint32_t off; 302 uint32_t off;
303 uint32_t mod; 303 uint32_t mod;
@@ -461,7 +461,7 @@ MHD_digest_auth_check(struct MHD_Connection *connection,
461 uint32_t nonce_time; 461 uint32_t nonce_time;
462 uint32_t t; 462 uint32_t t;
463 size_t left; /* number of characters left in 'header' for 'uri' */ 463 size_t left; /* number of characters left in 'header' for 'uri' */
464 unsigned int nci; 464 unsigned long int nci;
465 465
466 header = MHD_lookup_connection_value(connection, 466 header = MHD_lookup_connection_value(connection,
467 MHD_HEADER_KIND, 467 MHD_HEADER_KIND,
diff --git a/src/daemon/internal.h b/src/daemon/internal.h
index fcacc523..0b5450e4 100644
--- a/src/daemon/internal.h
+++ b/src/daemon/internal.h
@@ -119,7 +119,7 @@ struct MHD_NonceNc
119 * Nonce counter, a value that increases for each subsequent 119 * Nonce counter, a value that increases for each subsequent
120 * request for the same nonce. 120 * request for the same nonce.
121 */ 121 */
122 unsigned int nc; 122 unsigned long int nc;
123 123
124 /** 124 /**
125 * Nonce value: 125 * Nonce value: