diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-02-18 12:31:35 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-02-18 12:31:35 +0100 |
commit | e5c2f9a339845bd040f3b326d2f976d4ea4d1ac2 (patch) | |
tree | a51a285966eda3642b85fdf22714eb4009c5e893 /src/gnutls | |
parent | dcaf43e3230f725a6ec0b406c205b7a87b7e3368 (diff) | |
download | libmicrohttpd-e5c2f9a339845bd040f3b326d2f976d4ea4d1ac2.tar.gz libmicrohttpd-e5c2f9a339845bd040f3b326d2f976d4ea4d1ac2.zip |
add remaining missing symbols for library to fully link
Diffstat (limited to 'src/gnutls')
-rw-r--r-- | src/gnutls/update_event_loop_info.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gnutls/update_event_loop_info.c b/src/gnutls/update_event_loop_info.c new file mode 100644 index 00000000..327b20e4 --- /dev/null +++ b/src/gnutls/update_event_loop_info.c | |||
@@ -0,0 +1,20 @@ | |||
1 | enum MHD_Bool | ||
2 | (*update_event_loop_info)(void *cls, | ||
3 | struct MHD_TLS_ConnectionState *cs, | ||
4 | enum MHD_RequestEventLoopInfo *eli); | ||
5 | |||
6 | |||
7 | switch (connection->tls_state) | ||
8 | { | ||
9 | case MHD_TLS_CONN_INIT: | ||
10 | *eli = MHD_EVENT_LOOP_INFO_READ; | ||
11 | return true; | ||
12 | case MHD_TLS_CONN_HANDSHAKING: | ||
13 | if (0 == gnutls_record_get_direction (connection->tls_session)) | ||
14 | *eli = MHD_EVENT_LOOP_INFO_READ; | ||
15 | else | ||
16 | *eli = MHD_EVENT_LOOP_INFO_WRITE; | ||
17 | return true; | ||
18 | default: | ||
19 | return false; | ||
20 | } | ||