diff options
Diffstat (limited to 'src/lib/connection_info.c')
-rw-r--r-- | src/lib/connection_info.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/connection_info.c b/src/lib/connection_info.c index 88055fa4..d83b34c5 100644 --- a/src/lib/connection_info.c +++ b/src/lib/connection_info.c | |||
@@ -42,13 +42,13 @@ | |||
42 | */ | 42 | */ |
43 | enum MHD_Bool | 43 | enum MHD_Bool |
44 | MHD_connection_get_information_sz (struct MHD_Connection *connection, | 44 | MHD_connection_get_information_sz (struct MHD_Connection *connection, |
45 | enum MHD_ConnectionInformationType info_type, | 45 | enum MHD_ConnectionInformationType info_type, |
46 | union MHD_ConnectionInformation *return_value, | 46 | union MHD_ConnectionInformation *return_value, |
47 | size_t return_value_size) | 47 | size_t return_value_size) |
48 | { | 48 | { |
49 | #define CHECK_SIZE(type) if (sizeof(type) < return_value_size) \ | 49 | #define CHECK_SIZE(type) if (sizeof(type) < return_value_size) \ |
50 | return MHD_NO | 50 | return MHD_NO |
51 | 51 | ||
52 | switch (info_type) | 52 | switch (info_type) |
53 | { | 53 | { |
54 | #ifdef HTTPS_SUPPORT | 54 | #ifdef HTTPS_SUPPORT |
@@ -63,7 +63,7 @@ MHD_connection_get_information_sz (struct MHD_Connection *connection, | |||
63 | CHECK_SIZE (int); | 63 | CHECK_SIZE (int); |
64 | if (NULL == connection->tls_cs) | 64 | if (NULL == connection->tls_cs) |
65 | return MHD_NO; | 65 | return MHD_NO; |
66 | //return_value->protocol | 66 | // return_value->protocol |
67 | // = gnutls_protocol_get_version (connection->tls_session); | 67 | // = gnutls_protocol_get_version (connection->tls_session); |
68 | return MHD_NO; // FIXME: to be implemented | 68 | return MHD_NO; // FIXME: to be implemented |
69 | case MHD_CONNECTION_INFORMATION_GNUTLS_SESSION: | 69 | case MHD_CONNECTION_INFORMATION_GNUTLS_SESSION: |
@@ -103,7 +103,7 @@ MHD_connection_get_information_sz (struct MHD_Connection *connection, | |||
103 | default: | 103 | default: |
104 | return MHD_NO; | 104 | return MHD_NO; |
105 | } | 105 | } |
106 | 106 | ||
107 | #undef CHECK_SIZE | 107 | #undef CHECK_SIZE |
108 | } | 108 | } |
109 | 109 | ||