blob: 3b7bc628f0ab1e00117d866bbf0d341ebc65048c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
enum MHD_Bool
(*update_event_loop_info)(void *cls,
struct MHD_TLS_ConnectionState *cs,
enum MHD_RequestEventLoopInfo *eli);
switch (connection->tls_state)
{
case MHD_TLS_CONN_INIT:
*eli = MHD_EVENT_LOOP_INFO_READ;
return true;
case MHD_TLS_CONN_HANDSHAKING:
if (0 == gnutls_record_get_direction (connection->tls_session))
*eli = MHD_EVENT_LOOP_INFO_READ;
else
*eli = MHD_EVENT_LOOP_INFO_WRITE;
return true;
default:
return false;
}
|