[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 11/13: MHD_connection_update_event_loop_info(): more com
From: |
gnunet |
Subject: |
[libmicrohttpd] 11/13: MHD_connection_update_event_loop_info(): more complete TLS states handling |
Date: |
Mon, 16 May 2022 20:15:00 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 28e0215df7c2aeca176bb66c5ea60a29af1cf37a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon May 16 19:42:36 2022 +0300
MHD_connection_update_event_loop_info(): more complete TLS states handling
---
src/microhttpd/connection.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index be9d65b1..a260933c 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2484,13 +2484,24 @@ MHD_connection_update_event_loop_info (struct
MHD_Connection *connection)
connection->event_loop_info = MHD_EVENT_LOOP_INFO_READ;
return;
case MHD_TLS_CONN_HANDSHAKING:
+ case MHD_TLS_CONN_WR_CLOSING:
if (0 == gnutls_record_get_direction (connection->tls_session))
connection->event_loop_info = MHD_EVENT_LOOP_INFO_READ;
else
connection->event_loop_info = MHD_EVENT_LOOP_INFO_WRITE;
return;
+ case MHD_TLS_CONN_CONNECTED:
+ break; /* Do normal processing */
+ case MHD_TLS_CONN_WR_CLOSED:
+ case MHD_TLS_CONN_TLS_FAILED:
+ connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;
+ return;
+ case MHD_TLS_CONN_TLS_CLOSING: /* Not implemented yet */
+ case MHD_TLS_CONN_TLS_CLOSED: /* Not implemented yet */
+ case MHD_TLS_CONN_INVALID_STATE:
+ case MHD_TLS_CONN_NO_TLS: /* Not possible */
default:
- break;
+ MHD_PANIC (_ ("Invalid TLS state value.\n"));
}
}
#endif /* HTTPS_SUPPORT */
--
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, 2022/05/16
- [libmicrohttpd] 11/13: MHD_connection_update_event_loop_info(): more complete TLS states handling,
gnunet <=
- [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