diff options
Diffstat (limited to 'src/gnutls/update_event_loop_info.c')
-rw-r--r-- | src/gnutls/update_event_loop_info.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/gnutls/update_event_loop_info.c b/src/gnutls/update_event_loop_info.c index 327b20e4..3b7bc628 100644 --- a/src/gnutls/update_event_loop_info.c +++ b/src/gnutls/update_event_loop_info.c | |||
@@ -1,20 +1,20 @@ | |||
1 | enum MHD_Bool | 1 | enum MHD_Bool |
2 | (*update_event_loop_info)(void *cls, | 2 | (*update_event_loop_info)(void *cls, |
3 | struct MHD_TLS_ConnectionState *cs, | 3 | struct MHD_TLS_ConnectionState *cs, |
4 | enum MHD_RequestEventLoopInfo *eli); | 4 | enum MHD_RequestEventLoopInfo *eli); |
5 | 5 | ||
6 | 6 | ||
7 | switch (connection->tls_state) | 7 | switch (connection->tls_state) |
8 | { | 8 | { |
9 | case MHD_TLS_CONN_INIT: | 9 | case MHD_TLS_CONN_INIT: |
10 | *eli = MHD_EVENT_LOOP_INFO_READ; | 10 | *eli = MHD_EVENT_LOOP_INFO_READ; |
11 | return true; | 11 | return true; |
12 | case MHD_TLS_CONN_HANDSHAKING: | 12 | case MHD_TLS_CONN_HANDSHAKING: |
13 | if (0 == gnutls_record_get_direction (connection->tls_session)) | 13 | if (0 == gnutls_record_get_direction (connection->tls_session)) |
14 | *eli = MHD_EVENT_LOOP_INFO_READ; | 14 | *eli = MHD_EVENT_LOOP_INFO_READ; |
15 | else | 15 | else |
16 | *eli = MHD_EVENT_LOOP_INFO_WRITE; | 16 | *eli = MHD_EVENT_LOOP_INFO_WRITE; |
17 | return true; | 17 | return true; |
18 | default: | 18 | default: |
19 | return false; | 19 | return false; |
20 | } | 20 | } |