diff options
Diffstat (limited to 'src/daemon/digestauth.c')
-rw-r--r-- | src/daemon/digestauth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/digestauth.c b/src/daemon/digestauth.c index 1e976bb6..1f9547c5 100644 --- a/src/daemon/digestauth.c +++ b/src/daemon/digestauth.c | |||
@@ -619,7 +619,7 @@ MHD_digest_auth_check(struct MHD_Connection *connection, | |||
619 | 619 | ||
620 | /* 8 = 4 hexadecimal numbers for the timestamp */ | 620 | /* 8 = 4 hexadecimal numbers for the timestamp */ |
621 | nonce_time = strtoul(nonce + len - 8, (char **)NULL, 16); | 621 | nonce_time = strtoul(nonce + len - 8, (char **)NULL, 16); |
622 | t = (uint32_t) time(NULL); | 622 | t = (uint32_t) MHD_monotonic_time(); |
623 | /* | 623 | /* |
624 | * First level vetting for the nonce validity if the timestamp | 624 | * First level vetting for the nonce validity if the timestamp |
625 | * attached to the nonce exceeds `nonce_timeout' then the nonce is | 625 | * attached to the nonce exceeds `nonce_timeout' then the nonce is |
@@ -751,7 +751,7 @@ MHD_queue_auth_fail_response(struct MHD_Connection *connection, | |||
751 | char nonce[HASH_MD5_HEX_LEN + 9]; | 751 | char nonce[HASH_MD5_HEX_LEN + 9]; |
752 | 752 | ||
753 | /* Generating the server nonce */ | 753 | /* Generating the server nonce */ |
754 | calculate_nonce ((uint32_t) time(NULL), | 754 | calculate_nonce ((uint32_t) MHD_monotonic_time(), |
755 | connection->method, | 755 | connection->method, |
756 | connection->daemon->digest_auth_random, | 756 | connection->daemon->digest_auth_random, |
757 | connection->daemon->digest_auth_rand_size, | 757 | connection->daemon->digest_auth_rand_size, |