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 | |
parent | 69a35bc3a06cc0ef1b52c49a64f93dcb661e0989 (diff) |
struct MHD_NonceNc: use uint64_t for counter.
This produce same result on all platforms.
-rw-r--r-- | src/microhttpd/digestauth.c | 4 | ||||
-rw-r--r-- | src/microhttpd/internal.h | 2 |
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, static int check_nonce_nc (struct MHD_Connection *connection, const char *nonce, - unsigned long int nc) + uint64_t nc) { uint32_t off; uint32_t mod; @@ -567,7 +567,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 long int nci; + uint64_t nci; header = MHD_lookup_connection_value (connection, 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 * Nonce counter, a value that increases for each subsequent * request for the same nonce. */ - unsigned long int nc; + uint64_t nc; /** * Nonce value: |