commit 3100e3e368aa364294c00184a91fb57e4c80abef
parent 843b844d64578aa20749658c656d93ea2e17710c
Author: ng0 <ng0@n0.is>
Date: Thu, 18 Jul 2019 18:45:17 +0000
mhd_send.c: call send_tls_adapter() when TLS is used.
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
@@ -218,9 +218,9 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
/* for TLS*/
if (0 != (connection->daemon->options & MHD_USE_TLS))
- /* old TLS code here */;
+ send_tls_adapter(connection, buffer, buffer_size);
else
- no-TLS;
+ ;
// shouldn't we return 0 or -1? Why re-use the _ERR_ functions?
// error handling from send_param_adapter():
diff --git a/src/microhttpd/mhd_send.h b/src/microhttpd/mhd_send.h
@@ -35,6 +35,7 @@
#include <errno.h>
#include "mhd_sockets.h"
#include "connection.h"
+#include "connection_https.h"
enum MHD_SendSocketOptions
{