34 #include <gnutls/gnutls.h>
53 ret = gnutls_handshake (connection->tls_session);
54 if (ret == GNUTLS_E_SUCCESS)
60 if ( (ret == GNUTLS_E_AGAIN) ||
61 (ret == GNUTLS_E_INTERRUPTED) )
68 MHD_DLOG (connection->
daemon,
69 "Error: received handshake message out of context\n");
134 unsigned int timeout;
137 MHD_DLOG (connection->
daemon,
140 MHD_state_to_string (connection->
state));
146 switch (connection->
state)
153 gnutls_bye (connection->tls_session, GNUTLS_SHUT_RDWR);
156 if ( (0 != gnutls_record_check_pending (connection->tls_session)) &&
162 return MHD_connection_epoll_update_ (connection);
int(* write_handler)(struct MHD_Connection *connection)
enum MHD_CONNECTION_STATE state
int(* idle_handler)(struct MHD_Connection *connection)
int MHD_connection_handle_write(struct MHD_Connection *connection)
Methods for managing connections.
Methods for managing response objects.
int(* read_handler)(struct MHD_Connection *connection)
struct MHD_Daemon * daemon
static int MHD_tls_connection_handle_write(struct MHD_Connection *connection)
int MHD_connection_handle_read(struct MHD_Connection *connection)
internal shared structures
void MHD_set_https_callbacks(struct MHD_Connection *connection)
time_t MHD_monotonic_time(void)
static int MHD_tls_connection_handle_read(struct MHD_Connection *connection)
static int run_tls_handshake(struct MHD_Connection *connection)
int MHD_connection_handle_idle(struct MHD_Connection *connection)
unsigned int connection_timeout
static int MHD_tls_connection_handle_idle(struct MHD_Connection *connection)
void MHD_connection_close(struct MHD_Connection *connection, enum MHD_RequestTerminationCode termination_code)
memory pool; mostly used for efficient (de)allocation for each connection and bounding memory use for...