diff --git a/mongoose.c b/mongoose.c index c0bb23e6..b84c2ae0 100644 --- a/mongoose.c +++ b/mongoose.c @@ -661,7 +661,6 @@ void mg_bsd_transport_close(void *t) { - #define MG_NO_CACHE_HEADERS "Cache-Control: no-cache\r\n" #define MG_JSON_HEADERS "Content-Type: application/json\r\n" MG_NO_CACHE_HEADERS diff --git a/mongoose.h b/mongoose.h index 7b47670d..cf56f0e1 100644 --- a/mongoose.h +++ b/mongoose.h @@ -1434,6 +1434,7 @@ extern const struct mg_mem_file mg_packed_files[]; // Generated by "pack" util + #if MG_ENABLE_ASSERT #include #elif !defined(assert) @@ -1907,6 +1908,7 @@ void mg_http_serve_ssi(struct mg_connection *c, const char *root, // TLS / Security +// Available TLS backend libraries #define MG_TLS_NONE 0 // No TLS support #define MG_TLS_MBED 1 // mbedTLS #define MG_TLS_OPENSSL 2 // OpenSSL @@ -1915,6 +1917,8 @@ void mg_http_serve_ssi(struct mg_connection *c, const char *root, #define MG_TLS_CUSTOM 4 // Custom implementation #ifndef MG_TLS +// mongoose_config.h setting. Set MG_TLS to one of the MG_TLS_* values above to +// select a TLS backend. Defaults to MG_TLS_NONE (no TLS). #define MG_TLS MG_TLS_NONE #endif diff --git a/src/dash.c b/src/dash.c index bebbe3d1..2fe44207 100644 --- a/src/dash.c +++ b/src/dash.c @@ -1,6 +1,5 @@ #include "dash.h" #include "http.h" -#include "ota.h" #include "util.h" #define MG_NO_CACHE_HEADERS "Cache-Control: no-cache\r\n" diff --git a/src/tls.h b/src/tls.h index 1e040b91..6442b38b 100644 --- a/src/tls.h +++ b/src/tls.h @@ -1,6 +1,7 @@ // TLS / Security #pragma once +// Available TLS backend libraries #define MG_TLS_NONE 0 // No TLS support #define MG_TLS_MBED 1 // mbedTLS #define MG_TLS_OPENSSL 2 // OpenSSL @@ -9,6 +10,8 @@ #define MG_TLS_CUSTOM 4 // Custom implementation #ifndef MG_TLS +// mongoose_config.h setting. Set MG_TLS to one of the MG_TLS_* values above to +// select a TLS backend. Defaults to MG_TLS_NONE (no TLS). #define MG_TLS MG_TLS_NONE #endif diff --git a/src/util.h b/src/util.h index 2e6c121d..e8c0aa46 100644 --- a/src/util.h +++ b/src/util.h @@ -3,6 +3,7 @@ #include "arch.h" #include "config.h" #include "net.h" +#include "sntp.h" #include "str.h" #if MG_ENABLE_ASSERT