diff options
Diffstat (limited to 'src/microhttpd/connection_https.c')
-rw-r--r-- | src/microhttpd/connection_https.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/microhttpd/connection_https.c b/src/microhttpd/connection_https.c index 0eea4837..474eece7 100644 --- a/src/microhttpd/connection_https.c +++ b/src/microhttpd/connection_https.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Give gnuTLS chance to work on the TLS handshake. | 38 | * Give gnuTLS chance to work on the TLS handshake. |
39 | * | 39 | * |
40 | * @param connection connection to handshake on | 40 | * @param connection connection to handshake on |
41 | * @return #MHD_YES on error or if the handshake is progressing | 41 | * @return #MHD_YES on error or if the handshake is progressing |
@@ -51,13 +51,13 @@ run_tls_handshake (struct MHD_Connection *connection) | |||
51 | if (connection->state == MHD_TLS_CONNECTION_INIT) | 51 | if (connection->state == MHD_TLS_CONNECTION_INIT) |
52 | { | 52 | { |
53 | ret = gnutls_handshake (connection->tls_session); | 53 | ret = gnutls_handshake (connection->tls_session); |
54 | if (ret == GNUTLS_E_SUCCESS) | 54 | if (ret == GNUTLS_E_SUCCESS) |
55 | { | 55 | { |
56 | /* set connection state to enable HTTP processing */ | 56 | /* set connection state to enable HTTP processing */ |
57 | connection->state = MHD_CONNECTION_INIT; | 57 | connection->state = MHD_CONNECTION_INIT; |
58 | return MHD_YES; | 58 | return MHD_YES; |
59 | } | 59 | } |
60 | if ( (ret == GNUTLS_E_AGAIN) || | 60 | if ( (ret == GNUTLS_E_AGAIN) || |
61 | (ret == GNUTLS_E_INTERRUPTED) ) | 61 | (ret == GNUTLS_E_INTERRUPTED) ) |
62 | { | 62 | { |
63 | /* handshake not done */ | 63 | /* handshake not done */ |
@@ -156,7 +156,7 @@ MHD_tls_connection_handle_idle (struct MHD_Connection *connection) | |||
156 | return MHD_YES; | 156 | return MHD_YES; |
157 | return MHD_connection_handle_idle (connection); | 157 | return MHD_connection_handle_idle (connection); |
158 | } | 158 | } |
159 | #if EPOLL_SUPPORT | 159 | #if EPOLL_SUPPORT |
160 | return MHD_connection_epoll_update_ (connection); | 160 | return MHD_connection_epoll_update_ (connection); |
161 | #else | 161 | #else |
162 | return MHD_YES; | 162 | return MHD_YES; |
@@ -170,6 +170,7 @@ MHD_tls_connection_handle_idle (struct MHD_Connection *connection) | |||
170 | * | 170 | * |
171 | * @param connection which callbacks should be modified | 171 | * @param connection which callbacks should be modified |
172 | */ | 172 | */ |
173 | HIDDEN_SYMBOL | ||
173 | void | 174 | void |
174 | MHD_set_https_callbacks (struct MHD_Connection *connection) | 175 | MHD_set_https_callbacks (struct MHD_Connection *connection) |
175 | { | 176 | { |