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))
void MHD_update_last_activity_(struct MHD_Connection *connection)
Methods for managing connections.
static ssize_t recv_tls_adapter(struct MHD_Connection *connection, void *other, size_t i)
internal monotonic clock functions implementations
Methods for managing response objects.
struct MHD_Daemon * daemon
internal shared structures
void MHD_set_https_callbacks(struct MHD_Connection *connection)
void MHD_connection_close_(struct MHD_Connection *connection, enum MHD_RequestTerminationCode rtc)
Methods for managing connections.
bool MHD_run_tls_handshake_(struct MHD_Connection *connection)
bool MHD_tls_connection_shutdown(struct MHD_Connection *connection)