gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 02/02: Fixed compiler warnings for builds without Digest


From: gnunet
Subject: [libmicrohttpd] 02/02: Fixed compiler warnings for builds without Digest Auth
Date: Wed, 21 Feb 2024 14:36:47 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 4e2f9fd9e92ecf5627edbf9d52a99d8f7fecf245
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Feb 21 18:36:29 2024 +0500

    Fixed compiler warnings for builds without Digest Auth
---
 src/microhttpd/daemon.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b3563c1a..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);

-- 
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]