aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/digestauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r--src/microhttpd/digestauth.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 3ed76a35..992328c5 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -344,7 +344,7 @@ check_nonce_nc (struct MHD_Connection *connection,
344 (0 != strcmp(connection->daemon->nnc[off].nonce, nonce)) ) 344 (0 != strcmp(connection->daemon->nnc[off].nonce, nonce)) )
345 { 345 {
346 (void) MHD_mutex_unlock_ (&connection->daemon->nnc_lock); 346 (void) MHD_mutex_unlock_ (&connection->daemon->nnc_lock);
347#if HAVE_MESSAGES 347#ifdef HAVE_MESSAGES
348 MHD_DLOG (connection->daemon, 348 MHD_DLOG (connection->daemon,
349 "Stale nonce received. If this happens a lot, you should probably increase the size of the nonce array.\n"); 349 "Stale nonce received. If this happens a lot, you should probably increase the size of the nonce array.\n");
350#endif 350#endif
@@ -496,7 +496,7 @@ check_argument_match (struct MHD_Connection *connection,
496 argb = strdup (args); 496 argb = strdup (args);
497 if (NULL == argb) 497 if (NULL == argb)
498 { 498 {
499#if HAVE_MESSAGES 499#ifdef HAVE_MESSAGES
500 MHD_DLOG (connection->daemon, 500 MHD_DLOG (connection->daemon,
501 "Failed to allocate memory for copy of URI arguments\n"); 501 "Failed to allocate memory for copy of URI arguments\n");
502#endif /* HAVE_MESSAGES */ 502#endif /* HAVE_MESSAGES */
@@ -657,7 +657,7 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
657 (0 == lookup_sub_value (nc, sizeof (nc), header, "nc")) || 657 (0 == lookup_sub_value (nc, sizeof (nc), header, "nc")) ||
658 (0 == lookup_sub_value (response, sizeof (response), header, "response")) ) 658 (0 == lookup_sub_value (response, sizeof (response), header, "response")) )
659 { 659 {
660#if HAVE_MESSAGES 660#ifdef HAVE_MESSAGES
661 MHD_DLOG (connection->daemon, 661 MHD_DLOG (connection->daemon,
662 "Authentication failed, invalid format.\n"); 662 "Authentication failed, invalid format.\n");
663#endif 663#endif
@@ -668,7 +668,7 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
668 ( (LONG_MAX == nci) && 668 ( (LONG_MAX == nci) &&
669 (ERANGE == errno) ) ) 669 (ERANGE == errno) ) )
670 { 670 {
671#if HAVE_MESSAGES 671#ifdef HAVE_MESSAGES
672 MHD_DLOG (connection->daemon, 672 MHD_DLOG (connection->daemon,
673 "Authentication failed, invalid format.\n"); 673 "Authentication failed, invalid format.\n");
674#endif 674#endif
@@ -691,7 +691,7 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
691 uri = malloc (left + 1); 691 uri = malloc (left + 1);
692 if (NULL == uri) 692 if (NULL == uri)
693 { 693 {
694#if HAVE_MESSAGES 694#ifdef HAVE_MESSAGES
695 MHD_DLOG(connection->daemon, 695 MHD_DLOG(connection->daemon,
696 "Failed to allocate memory for auth header processing\n"); 696 "Failed to allocate memory for auth header processing\n");
697#endif /* HAVE_MESSAGES */ 697#endif /* HAVE_MESSAGES */
@@ -730,7 +730,7 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
730 connection->url, 730 connection->url,
731 strlen (connection->url))) 731 strlen (connection->url)))
732 { 732 {
733#if HAVE_MESSAGES 733#ifdef HAVE_MESSAGES
734 MHD_DLOG (connection->daemon, 734 MHD_DLOG (connection->daemon,
735 "Authentication failed, URI does not match.\n"); 735 "Authentication failed, URI does not match.\n");
736#endif 736#endif
@@ -749,7 +749,7 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
749 check_argument_match (connection, 749 check_argument_match (connection,
750 args) ) 750 args) )
751 { 751 {
752#if HAVE_MESSAGES 752#ifdef HAVE_MESSAGES
753 MHD_DLOG (connection->daemon, 753 MHD_DLOG (connection->daemon,
754 "Authentication failed, arguments do not match.\n"); 754 "Authentication failed, arguments do not match.\n");
755#endif 755#endif
@@ -800,7 +800,7 @@ MHD_queue_auth_fail_response (struct MHD_Connection *connection,
800 nonce); 800 nonce);
801 if (MHD_YES != check_nonce_nc (connection, nonce, 0)) 801 if (MHD_YES != check_nonce_nc (connection, nonce, 0))
802 { 802 {
803#if HAVE_MESSAGES 803#ifdef HAVE_MESSAGES
804 MHD_DLOG (connection->daemon, 804 MHD_DLOG (connection->daemon,
805 "Could not register nonce (is the nonce array size zero?).\n"); 805 "Could not register nonce (is the nonce array size zero?).\n");
806#endif 806#endif
@@ -822,7 +822,7 @@ MHD_queue_auth_fail_response (struct MHD_Connection *connection,
822 header = malloc(hlen + 1); 822 header = malloc(hlen + 1);
823 if (NULL == header) 823 if (NULL == header)
824 { 824 {
825#if HAVE_MESSAGES 825#ifdef HAVE_MESSAGES
826 MHD_DLOG(connection->daemon, 826 MHD_DLOG(connection->daemon,
827 "Failed to allocate memory for auth response header\n"); 827 "Failed to allocate memory for auth response header\n");
828#endif /* HAVE_MESSAGES */ 828#endif /* HAVE_MESSAGES */