aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 95b60f14..e60a5369 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1364,14 +1364,14 @@ MHD_connection_update_event_loop_info (struct MHD_Connection *connection)
1364#endif 1364#endif
1365 switch (connection->state) 1365 switch (connection->state)
1366 { 1366 {
1367#if HTTPS_SUPPORT 1367#ifdef HTTPS_SUPPORT
1368 case MHD_TLS_CONNECTION_INIT: 1368 case MHD_TLS_CONNECTION_INIT:
1369 if (0 == gnutls_record_get_direction (connection->tls_session)) 1369 if (0 == gnutls_record_get_direction (connection->tls_session))
1370 connection->event_loop_info = MHD_EVENT_LOOP_INFO_READ; 1370 connection->event_loop_info = MHD_EVENT_LOOP_INFO_READ;
1371 else 1371 else
1372 connection->event_loop_info = MHD_EVENT_LOOP_INFO_WRITE; 1372 connection->event_loop_info = MHD_EVENT_LOOP_INFO_WRITE;
1373 break; 1373 break;
1374#endif 1374#endif /* HTTPS_SUPPORT */
1375 case MHD_CONNECTION_INIT: 1375 case MHD_CONNECTION_INIT:
1376 case MHD_CONNECTION_URL_RECEIVED: 1376 case MHD_CONNECTION_URL_RECEIVED:
1377 case MHD_CONNECTION_HEADER_PART_RECEIVED: 1377 case MHD_CONNECTION_HEADER_PART_RECEIVED:
@@ -3324,7 +3324,7 @@ MHD_get_connection_info (struct MHD_Connection *connection,
3324{ 3324{
3325 switch (info_type) 3325 switch (info_type)
3326 { 3326 {
3327#if HTTPS_SUPPORT 3327#ifdef HTTPS_SUPPORT
3328 case MHD_CONNECTION_INFO_CIPHER_ALGO: 3328 case MHD_CONNECTION_INFO_CIPHER_ALGO:
3329 if (NULL == connection->tls_session) 3329 if (NULL == connection->tls_session)
3330 return NULL; 3330 return NULL;
@@ -3339,7 +3339,7 @@ MHD_get_connection_info (struct MHD_Connection *connection,
3339 if (NULL == connection->tls_session) 3339 if (NULL == connection->tls_session)
3340 return NULL; 3340 return NULL;
3341 return (const union MHD_ConnectionInfo *) &connection->tls_session; 3341 return (const union MHD_ConnectionInfo *) &connection->tls_session;
3342#endif 3342#endif /* HTTPS_SUPPORT */
3343 case MHD_CONNECTION_INFO_CLIENT_ADDRESS: 3343 case MHD_CONNECTION_INFO_CLIENT_ADDRESS:
3344 return (const union MHD_ConnectionInfo *) &connection->addr; 3344 return (const union MHD_ConnectionInfo *) &connection->addr;
3345 case MHD_CONNECTION_INFO_DAEMON: 3345 case MHD_CONNECTION_INFO_DAEMON: