diff options
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r-- | src/microhttpd/digestauth.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index b7a32bf0..3dd29d20 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -1544,6 +1544,15 @@ calculate_add_nonce_with_retry (struct MHD_Connection *const connection, | |||
1544 | const uint64_t timestamp1 = MHD_monotonic_msec_counter (); | 1544 | const uint64_t timestamp1 = MHD_monotonic_msec_counter (); |
1545 | const size_t realm_len = strlen (realm); | 1545 | const size_t realm_len = strlen (realm); |
1546 | 1546 | ||
1547 | #ifdef HAVE_MESSAGES | ||
1548 | if (0 == MHD_get_master (connection->daemon)->digest_auth_rand_size) | ||
1549 | MHD_DLOG (connection->daemon, | ||
1550 | _ ("Random value was not initialised by " \ | ||
1551 | "MHD_OPTION_DIGEST_AUTH_RANDOM or " \ | ||
1552 | "MHD_OPTION_DIGEST_AUTH_RANDOM_COPY, generated nonces " \ | ||
1553 | "are predictable.\n")); | ||
1554 | #endif | ||
1555 | |||
1547 | if (! calculate_add_nonce (connection, timestamp1, realm, realm_len, da, | 1556 | if (! calculate_add_nonce (connection, timestamp1, realm, realm_len, da, |
1548 | nonce)) | 1557 | nonce)) |
1549 | { | 1558 | { |