[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 08/13: Added missing in 'switch' enum values (no functio
From: |
gnunet |
Subject: |
[libmicrohttpd] 08/13: Added missing in 'switch' enum values (no functional change) |
Date: |
Mon, 16 May 2022 20:14:57 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 4fde24d42211b8a7637bc1cfbe00f1f35e98e58f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon May 16 19:36:25 2022 +0300
Added missing in 'switch' enum values (no functional change)
---
src/microhttpd/connection.c | 10 +++++++++-
src/microhttpd/daemon.c | 13 +++++++++++--
src/microhttpd/postprocessor.c | 13 +++++++++++++
src/microhttpd/response.c | 2 ++
4 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 9f05aa9f..7ae01a53 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -4145,6 +4145,8 @@ MHD_connection_handle_read (struct MHD_Connection
*connection,
case MHD_CONNECTION_CONTINUE_SENT:
case MHD_CONNECTION_BODY_RECEIVED:
case MHD_CONNECTION_FOOTER_PART_RECEIVED:
+ case MHD_CONNECTION_FOOTERS_RECEIVED:
+ case MHD_CONNECTION_FULL_REQ_RECEIVED:
/* nothing to do but default action */
if (connection->read_closed)
{
@@ -5311,7 +5313,13 @@ MHD_get_connection_info (struct MHD_Connection
*connection,
return NULL;
connection->connection_info_dummy.tls_session = connection->tls_session;
return &connection->connection_info_dummy;
-#endif /* HTTPS_SUPPORT */
+#else /* ! HTTPS_SUPPORT */
+ case MHD_CONNECTION_INFO_CIPHER_ALGO:
+ case MHD_CONNECTION_INFO_PROTOCOL:
+ case MHD_CONNECTION_INFO_GNUTLS_SESSION:
+#endif /* ! HTTPS_SUPPORT */
+ case MHD_CONNECTION_INFO_GNUTLS_CLIENT_CERT:
+ return NULL; /* Not implemented */
case MHD_CONNECTION_INFO_CLIENT_ADDRESS:
if (0 < connection->addr_len)
{
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index c919cf9d..5f1a3e0d 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -637,6 +637,9 @@ MHD_TLS_init (struct MHD_Daemon *daemon)
gnutls_psk_allocate_server_credentials (&daemon->psk_cred))
return GNUTLS_E_MEMORY_ERROR;
return 0;
+ case GNUTLS_CRD_ANON:
+ case GNUTLS_CRD_SRP:
+ case GNUTLS_CRD_IA:
default:
#ifdef HAVE_MESSAGES
MHD_DLOG (daemon,
@@ -2626,6 +2629,9 @@ new_connection_prepare_ (struct MHD_Daemon *daemon,
gnutls_psk_set_server_credentials_function (daemon->psk_cred,
&psk_gnutls_adapter);
break;
+ case GNUTLS_CRD_ANON:
+ case GNUTLS_CRD_SRP:
+ case GNUTLS_CRD_IA:
default:
#ifdef HAVE_MESSAGES
MHD_DLOG (daemon,
@@ -6374,6 +6380,7 @@ parse_options_va (struct MHD_Daemon *daemon,
MHD_OPTION_END))
return MHD_NO;
break;
+ case MHD_OPTION_END: /* Not possible */
default:
return MHD_NO;
}
@@ -8061,11 +8068,13 @@ MHD_get_daemon_info (struct MHD_Daemon *daemon,
case MHD_DAEMON_INFO_LISTEN_FD:
daemon->daemon_info_dummy_listen_fd.listen_fd = daemon->listen_fd;
return &daemon->daemon_info_dummy_listen_fd;
-#ifdef EPOLL_SUPPORT
case MHD_DAEMON_INFO_EPOLL_FD:
+#ifdef EPOLL_SUPPORT
daemon->daemon_info_dummy_epoll_fd.epoll_fd = daemon->epoll_fd;
return &daemon->daemon_info_dummy_epoll_fd;
-#endif
+#else /* ! EPOLL_SUPPORT */
+ return NULL;
+#endif /* ! EPOLL_SUPPORT */
case MHD_DAEMON_INFO_CURRENT_CONNECTIONS:
if (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD))
{
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index 39070334..103eb5e5 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -707,6 +707,16 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
pp->buffer_pos = 0;
pp->state = PP_Init;
break;
+ case PP_NextBoundary:
+ case PP_ProcessEntryHeaders:
+ case PP_PerformCheckMultipart:
+ case PP_ProcessValueToBoundary:
+ case PP_PerformCleanup:
+ case PP_Nested_Init:
+ case PP_Nested_PerformMarking:
+ case PP_Nested_ProcessEntryHeaders:
+ case PP_Nested_ProcessValueToBoundary:
+ case PP_Nested_PerformCleanup:
default:
MHD_PANIC (_ ("internal error.\n")); /* should never happen! */
}
@@ -1429,6 +1439,9 @@ post_process_multipart (struct MHD_PostProcessor *pp,
pp->state = PP_Nested_ProcessEntryHeaders;
state_changed = 1;
break;
+ case PP_ProcessKey:
+ case PP_ProcessValue:
+ case PP_Callback:
default:
MHD_PANIC (_ ("internal error.\n")); /* should never happen! */
}
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 35e0aaeb..13fb253b 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -937,6 +937,8 @@ MHD_set_response_options (struct MHD_Response *response,
{
switch (ro)
{
+ case MHD_RO_END: /* Not possible */
+ break;
default:
ret = MHD_NO;
break;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (6c3d5864 -> 129e28d3), gnunet, 2022/05/16
- [libmicrohttpd] 01/13: digestauth: simplified overflow check, gnunet, 2022/05/16
- [libmicrohttpd] 03/13: configure: use correct quoting in OS detection part, gnunet, 2022/05/16
- [libmicrohttpd] 02/13: configure: additional warning flags, gnunet, 2022/05/16
- [libmicrohttpd] 06/13: internal.h: fixed incorrect use of enum value as preprocessor value, gnunet, 2022/05/16
- [libmicrohttpd] 04/13: configure: use standard Linux settings for Linux on ARM, gnunet, 2022/05/16
- [libmicrohttpd] 08/13: Added missing in 'switch' enum values (no functional change),
gnunet <=
- [libmicrohttpd] 11/13: MHD_connection_update_event_loop_info(): more complete TLS states handling, gnunet, 2022/05/16
- [libmicrohttpd] 05/13: Use '#ifdef PARAM' instead of '#if PARAM' for configuration options, gnunet, 2022/05/16
- [libmicrohttpd] 09/13: daemon options: added missing HTTPS-related options error reports for non-HTTPS builds, gnunet, 2022/05/16
- [libmicrohttpd] 13/13: mhd_panic: minor macro improvement, gnunet, 2022/05/16
- [libmicrohttpd] 07/13: Fixed uninitialized value used in assert, gnunet, 2022/05/16
- [libmicrohttpd] 10/13: MHD_connection_handle_read(): refactored states handling at the end of the function, gnunet, 2022/05/16
- [libmicrohttpd] 12/13: W32 projects: enabled more warnings, gnunet, 2022/05/16