From 6352a326c0c440b39308581b1610991747f3d34d Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Tue, 12 Apr 2016 12:53:24 +0000 Subject: struct MHD_NonceNc: use uint64_t for counter. This produce same result on all platforms. --- src/microhttpd/digestauth.c | 4 ++-- 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: -- cgit v1.2.3