diff options
author | ng0 <ng0@n0.is> | 2019-07-18 18:45:17 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-07-18 18:45:17 +0000 |
commit | 3100e3e368aa364294c00184a91fb57e4c80abef (patch) | |
tree | e4c18da3de032e8df503174f28962ff3f1f71cc1 | |
parent | 843b844d64578aa20749658c656d93ea2e17710c (diff) | |
download | libmicrohttpd-3100e3e368aa364294c00184a91fb57e4c80abef.tar.gz libmicrohttpd-3100e3e368aa364294c00184a91fb57e4c80abef.zip |
mhd_send.c: call send_tls_adapter() when TLS is used.
-rw-r--r-- | src/microhttpd/mhd_send.c | 4 | ||||
-rw-r--r-- | src/microhttpd/mhd_send.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index d32533a8..18996c00 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -218,9 +218,9 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, | |||
218 | /* for TLS*/ | 218 | /* for TLS*/ |
219 | 219 | ||
220 | if (0 != (connection->daemon->options & MHD_USE_TLS)) | 220 | if (0 != (connection->daemon->options & MHD_USE_TLS)) |
221 | /* old TLS code here */; | 221 | send_tls_adapter(connection, buffer, buffer_size); |
222 | else | 222 | else |
223 | no-TLS; | 223 | ; |
224 | 224 | ||
225 | // shouldn't we return 0 or -1? Why re-use the _ERR_ functions? | 225 | // shouldn't we return 0 or -1? Why re-use the _ERR_ functions? |
226 | // error handling from send_param_adapter(): | 226 | // error handling from send_param_adapter(): |
diff --git a/src/microhttpd/mhd_send.h b/src/microhttpd/mhd_send.h index 64b4f240..7bd79a16 100644 --- a/src/microhttpd/mhd_send.h +++ b/src/microhttpd/mhd_send.h | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <errno.h> | 35 | #include <errno.h> |
36 | #include "mhd_sockets.h" | 36 | #include "mhd_sockets.h" |
37 | #include "connection.h" | 37 | #include "connection.h" |
38 | #include "connection_https.h" | ||
38 | 39 | ||
39 | enum MHD_SendSocketOptions | 40 | enum MHD_SendSocketOptions |
40 | { | 41 | { |