aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-04-12 12:53:24 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-04-12 12:53:24 +0000
commit6352a326c0c440b39308581b1610991747f3d34d (patch)
tree9312e0f5935b506fbf1ca85dac108b15d4db86cf
parent69a35bc3a06cc0ef1b52c49a64f93dcb661e0989 (diff)
downloadlibmicrohttpd-6352a326c0c440b39308581b1610991747f3d34d.tar.gz
libmicrohttpd-6352a326c0c440b39308581b1610991747f3d34d.zip
struct MHD_NonceNc: use uint64_t for counter.
This produce same result on all platforms.
-rw-r--r--src/microhttpd/digestauth.c4
-rw-r--r--src/microhttpd/internal.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 851eaa3f..f461abd4 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -308,7 +308,7 @@ lookup_sub_value (char *dest,
308static int 308static int
309check_nonce_nc (struct MHD_Connection *connection, 309check_nonce_nc (struct MHD_Connection *connection,
310 const char *nonce, 310 const char *nonce,
311 unsigned long int nc) 311 uint64_t nc)
312{ 312{
313 uint32_t off; 313 uint32_t off;
314 uint32_t mod; 314 uint32_t mod;
@@ -567,7 +567,7 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
567 uint32_t nonce_time; 567 uint32_t nonce_time;
568 uint32_t t; 568 uint32_t t;
569 size_t left; /* number of characters left in 'header' for 'uri' */ 569 size_t left; /* number of characters left in 'header' for 'uri' */
570 unsigned long int nci; 570 uint64_t nci;
571 571
572 header = MHD_lookup_connection_value (connection, 572 header = MHD_lookup_connection_value (connection,
573 MHD_HEADER_KIND, 573 MHD_HEADER_KIND,
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 30db7e2a..73357518 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -190,7 +190,7 @@ struct MHD_NonceNc
190 * Nonce counter, a value that increases for each subsequent 190 * Nonce counter, a value that increases for each subsequent
191 * request for the same nonce. 191 * request for the same nonce.
192 */ 192 */
193 unsigned long int nc; 193 uint64_t nc;
194 194
195 /** 195 /**
196 * Nonce value: 196 * Nonce value: