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,
"%s: state: %s\n",
138 __FUNCTION__, MHD_state_to_string (connection->
state));
144 switch (connection->
state)
151 gnutls_bye (connection->tls_session, GNUTLS_SHUT_RDWR);
154 if ( (0 != gnutls_record_check_pending (connection->tls_session)) &&
160 return MHD_connection_epoll_update_ (connection);