gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated (b6ca2e66 -> 4e2f9fd9)


From: gnunet
Subject: [libmicrohttpd] branch master updated (b6ca2e66 -> 4e2f9fd9)
Date: Wed, 21 Feb 2024 14:36:45 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from b6ca2e66 Excluded example with basic auth when basic auth is disabled
     new efe16e48 Muted possible compiler warnings
     new 4e2f9fd9 Fixed compiler warnings for builds without Digest Auth

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/microhttpd/daemon.c | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index c83d4e5b..19e77e78 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -7030,7 +7030,20 @@ parse_options_va (struct MHD_Daemon *daemon,
           daemon->dauth_def_max_nc = val;
       }
       break;
-#endif
+#else  /* ! DAUTH_SUPPORT */
+    case MHD_OPTION_DIGEST_AUTH_RANDOM:
+    case MHD_OPTION_DIGEST_AUTH_RANDOM_COPY:
+    case MHD_OPTION_NONCE_NC_SIZE:
+    case MHD_OPTION_DIGEST_AUTH_NONCE_BIND_TYPE:
+    case MHD_OPTION_DIGEST_AUTH_DEFAULT_NONCE_TIMEOUT:
+    case MHD_OPTION_DIGEST_AUTH_DEFAULT_MAX_NC:
+#ifdef HAVE_MESSAGES
+      MHD_DLOG (daemon,
+                _ ("Digest Auth is disabled for this build " \
+                   "of GNU libmicrohttpd.\n"));
+#endif /* HAVE_MESSAGES */
+      return MHD_NO;
+#endif /* ! DAUTH_SUPPORT */
     case MHD_OPTION_LISTEN_SOCKET:
       params->listen_fd = va_arg (ap,
                                   MHD_socket);
@@ -7049,10 +7062,10 @@ parse_options_va (struct MHD_Daemon *daemon,
                      "printed by the standard MHD logger.\n"));
 
 #else
-      va_arg (ap,
-              VfprintfFunctionPointerType);
-      va_arg (ap,
-              void *);
+      (void) va_arg (ap,
+                     VfprintfFunctionPointerType);
+      (void) va_arg (ap,
+                     void *);
 #endif
       break;
 #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]