mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-01 05:52:32 +07:00
More docstrings
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -1434,6 +1434,7 @@ extern const struct mg_mem_file mg_packed_files[]; // Generated by "pack" util
|
||||
|
||||
|
||||
|
||||
|
||||
#if MG_ENABLE_ASSERT
|
||||
#include <assert.h>
|
||||
#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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "arch.h"
|
||||
#include "config.h"
|
||||
#include "net.h"
|
||||
#include "sntp.h"
|
||||
#include "str.h"
|
||||
|
||||
#if MG_ENABLE_ASSERT
|
||||
|
||||
Reference in New Issue
Block a user