diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-04-12 12:53:24 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-04-12 12:53:24 +0000 |
commit | 6352a326c0c440b39308581b1610991747f3d34d (patch) | |
tree | 9312e0f5935b506fbf1ca85dac108b15d4db86cf /src/microhttpd/digestauth.c | |
parent | 69a35bc3a06cc0ef1b52c49a64f93dcb661e0989 (diff) | |
download | libmicrohttpd-6352a326c0c440b39308581b1610991747f3d34d.tar.gz libmicrohttpd-6352a326c0c440b39308581b1610991747f3d34d.zip |
struct MHD_NonceNc: use uint64_t for counter.
This produce same result on all platforms.
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r-- | src/microhttpd/digestauth.c | 4 |
1 files changed, 2 insertions, 2 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, | |||
308 | static int | 308 | static int |
309 | check_nonce_nc (struct MHD_Connection *connection, | 309 | check_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, |