aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/basicauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/basicauth.c')
-rw-r--r--src/microhttpd/basicauth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/basicauth.c b/src/microhttpd/basicauth.c
index cbe0fc70..51f9cf93 100644
--- a/src/microhttpd/basicauth.c
+++ b/src/microhttpd/basicauth.c
@@ -59,7 +59,7 @@ MHD_basic_auth_get_username_password (struct MHD_Connection *connection,
59 header += strlen (_BASIC_BASE); 59 header += strlen (_BASIC_BASE);
60 if (NULL == (decode = BASE64Decode (header))) 60 if (NULL == (decode = BASE64Decode (header)))
61 { 61 {
62#if HAVE_MESSAGES 62#ifdef HAVE_MESSAGES
63 MHD_DLOG (connection->daemon, 63 MHD_DLOG (connection->daemon,
64 "Error decoding basic authentication\n"); 64 "Error decoding basic authentication\n");
65#endif 65#endif
@@ -68,7 +68,7 @@ MHD_basic_auth_get_username_password (struct MHD_Connection *connection,
68 /* Find user:password pattern */ 68 /* Find user:password pattern */
69 if (NULL == (separator = strchr (decode, ':'))) 69 if (NULL == (separator = strchr (decode, ':')))
70 { 70 {
71#if HAVE_MESSAGES 71#ifdef HAVE_MESSAGES
72 MHD_DLOG(connection->daemon, 72 MHD_DLOG(connection->daemon,
73 "Basic authentication doesn't contain ':' separator\n"); 73 "Basic authentication doesn't contain ':' separator\n");
74#endif 74#endif
@@ -86,7 +86,7 @@ MHD_basic_auth_get_username_password (struct MHD_Connection *connection,
86 *password = strdup (separator + 1); 86 *password = strdup (separator + 1);
87 if (NULL == *password) 87 if (NULL == *password)
88 { 88 {
89#if HAVE_MESSAGES 89#ifdef HAVE_MESSAGES
90 MHD_DLOG(connection->daemon, 90 MHD_DLOG(connection->daemon,
91 "Failed to allocate memory for password\n"); 91 "Failed to allocate memory for password\n");
92#endif 92#endif
@@ -124,7 +124,7 @@ MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection,
124 header = (char*)malloc(hlen); 124 header = (char*)malloc(hlen);
125 if (NULL == header) 125 if (NULL == header)
126 { 126 {
127#if HAVE_MESSAGES 127#ifdef HAVE_MESSAGES
128 MHD_DLOG(connection->daemon, 128 MHD_DLOG(connection->daemon,
129 "Failed to allocate memory for auth header\n"); 129 "Failed to allocate memory for auth header\n");
130#endif /* HAVE_MESSAGES */ 130#endif /* HAVE_MESSAGES */