commit 6352a326c0c440b39308581b1610991747f3d34d
parent 69a35bc3a06cc0ef1b52c49a64f93dcb661e0989
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 12 Apr 2016 12:53:24 +0000
struct MHD_NonceNc: use uint64_t for counter.
This produce same result on all platforms.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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: