35 #include <gnutls/gnutls.h>
57 res = gnutls_record_recv (connection->tls_session,
60 if ( (GNUTLS_E_AGAIN == res) ||
61 (GNUTLS_E_INTERRUPTED == res) )
64 if (GNUTLS_E_AGAIN == res)
87 (0 != gnutls_record_check_pending (
88 connection->tls_session)) );
110 ret = gnutls_handshake (connection->tls_session);
111 if (ret == GNUTLS_E_SUCCESS)
118 if ( (GNUTLS_E_AGAIN == ret) ||
119 (GNUTLS_E_INTERRUPTED == ret) )
128 MHD_DLOG (connection->
daemon,
129 _ (
"Error: received handshake message out of context.\n"));
164 gnutls_bye (connection->tls_session, GNUTLS_SHUT_WR);
165 if (GNUTLS_E_SUCCESS == res)
170 if ((GNUTLS_E_AGAIN == res) ||
171 (GNUTLS_E_INTERRUPTED == res))
Methods for managing connections.
void MHD_connection_close_(struct MHD_Connection *connection, enum MHD_RequestTerminationCode rtc)
bool MHD_tls_connection_shutdown(struct MHD_Connection *connection)
void MHD_set_https_callbacks(struct MHD_Connection *connection)
static ssize_t recv_tls_adapter(struct MHD_Connection *connection, void *other, size_t i)
bool MHD_run_tls_handshake_(struct MHD_Connection *connection)
Methods for managing connections.
void MHD_update_last_activity_(struct MHD_Connection *connection)
@ MHD_REQUEST_TERMINATED_WITH_ERROR
@ MHD_EPOLL_STATE_READ_READY
internal shared structures
@ MHD_TLS_CONN_WR_CLOSING
@ MHD_TLS_CONN_TLS_FAILED
@ MHD_TLS_CONN_HANDSHAKING
memory pool; mostly used for efficient (de)allocation for each connection and bounding memory use for...
internal monotonic clock functions implementations
Methods for managing response objects.
struct MHD_Daemon * daemon