182 Commits

Author SHA1 Message Date
Sergey Lyubka
c65c8fdaaa Protect against the directory traversal in mg_upload() 2022-01-17 12:08:23 +00:00
Sergey Lyubka
fb0a9bc7e3 Fix build 2021-12-21 18:16:12 +00:00
Sergey Lyubka
30bfb245f5 Make mongoose more bare-metal Keil friendly. Declare settings after arch. Introduce MG_ENABLE_FILE 2021-12-21 17:39:55 +00:00
Sergey Lyubka
755bf3c412 Split TLS files and introduce MG_ENABLE_CUSTOM_TLS 2021-12-14 12:42:41 +00:00
Sergey Lyubka
90b22716ea
Merge branch 'master' into undef 2021-10-22 14:03:25 +01:00
Sergey Lyubka
fb90c504a6 Remove private.h 2021-10-22 14:00:31 +01:00
James Hilliard
f72b8c6034 Fix some undefined macro warnings.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2021-10-13 13:06:00 -06:00
James Hilliard
c11e5a9383 Make private functions static and add missing prototypes.
Fixes:
mongoose/mongoose.c:180:8: warning: no previous prototype for ‘mg_dns_parse_name’ [-Wmissing-prototypes]
  180 | size_t mg_dns_parse_name(const uint8_t *s, size_t n, size_t ofs, char *dst,
      |        ^~~~~~~~~~~~~~~~~
mongoose/mongoose.c:306:6: warning: no previous prototype for ‘mg_dns_send’ [-Wmissing-prototypes]
  306 | void mg_dns_send(struct mg_connection *c, const struct mg_str *name,
      |      ^~~~~~~~~~~
mongoose/mongoose.c:925:6: warning: no previous prototype for ‘mg_http_parse_headers’ [-Wmissing-prototypes]
  925 | void mg_http_parse_headers(const char *s, const char *end,
      |      ^~~~~~~~~~~~~~~~~~~~~
mongoose/mongoose.c:1125:7: warning: no previous prototype for ‘mg_http_etag’ [-Wmissing-prototypes]
 1125 | char *mg_http_etag(char *buf, size_t len, size_t size, time_t mtime) {
      |       ^~~~~~~~~~~~
mongoose/mongoose.c:2578:6: warning: no previous prototype for ‘mg_sha1_transform’ [-Wmissing-prototypes]
 2578 | void mg_sha1_transform(uint32_t state[5], const unsigned char buffer[64]) {
      |      ^~~~~~~~~~~~~~~~~
mongoose/mongoose.c:2976:8: warning: no previous prototype for ‘mg_open_listener’ [-Wmissing-prototypes]
 2976 | SOCKET mg_open_listener(const char *url, struct mg_addr *addr) {
      |        ^~~~~~~~~~~~~~~~

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2021-10-12 20:18:11 -06:00
Sergey Lyubka
6fbb749431 7.4 -> 7.5 2021-09-30 13:34:55 +01:00
Sergey Lyubka
df848973dc Fix unamalgamated target 2021-09-14 12:27:02 +01:00
Sergey Lyubka
c2c6ff11ed Fix #1329 - send MG_EV_WS_OPEN for server connections 2021-08-04 11:38:32 +01:00
Sergey Lyubka
3a46055e52 Better packed test 2021-07-30 13:19:20 +01:00
Sergey Lyubka
c2176f969b Implement FS virtualization 2021-07-29 14:21:20 +01:00
Sergey Lyubka
dfc22af10f Run docker non-interactive 2021-07-26 18:18:29 +01:00
Sergey Lyubka
2d585474c1 Add riscv target, enhance arm target 2021-07-26 11:00:37 +01:00
Sergey Lyubka
bdb747f9de Fix mg_prefix test 2021-07-26 09:15:17 +01:00
Sergey Lyubka
299075c930 Add test for fopen_packed() 2021-07-26 09:05:34 +01:00
Sergey Lyubka
7e1d4325ec Fail examples target if any example fails 2021-07-24 08:45:51 +01:00
Sergey Lyubka
2a2c17a232 Remove MG_ENABLE_STDIO and cleanup 2021-07-24 03:44:00 +01:00
Sergey Lyubka
a09238debd Place config.h before arch*.h 2021-07-23 20:48:48 +01:00
Sergey Lyubka
3982e065c8 Fix #1315, fix #1317 - use #ifndef instead of #pragma once for compilers that do not support #pragma once 2021-07-19 09:04:18 +01:00
Sergey Lyubka
77fae5c562 Fix #1298 - shadowing struct mg_str constructor 2021-07-15 02:18:32 +01:00
Sergey Lyubka
d9680df510 Support mbedtls 3.x.x 2021-07-13 17:28:07 +01:00
cpq
89af2e9638 Merge branch 'master' of github.com:cesanta/mongoose 2021-07-13 06:58:52 +01:00
cpq
015586950f Fix #1305 - add #ifdef __cplusplus for C++ linkage 2021-07-13 06:58:34 +01:00
Jasper Orschulko
e69ee90acf Makefile: change curly brackets to round brackets
Esthetic change which replaces the curly brackets introduced by me in
commit b6ee9e637bbb885c29291f3fcc632b05375f6b28 with round brackets.
2021-06-30 21:46:58 +02:00
Jasper Orschulko
b6ee9e637b
Makefile: add static and dynamic lib targets 2021-06-21 11:51:42 +02:00
cpq
7c37d75bf4 Squash even more warnings 2021-05-28 18:57:47 +01:00
cpq
879261981f Squash more warnings 2021-05-28 18:54:39 +01:00
cpq
838b0bcd27 Squash more warnings 2021-05-28 18:45:35 +01:00
cpq
736b8ad7b7 Fix #1285 - __builtin___snprintf_chk warning. Tighten test flags and refactor the code to squash all warnings 2021-05-28 18:30:42 +01:00
cpq
41c1e0f08d Squash truncation warning 2021-03-17 12:22:19 +00:00
cpq
e7b1905e49 Add -Wno-error=format-truncation for test++ build 2021-03-17 12:15:46 +00:00
cpq
e00265f855 Add -Wno-error=format-truncation for linux++ build 2021-03-17 12:11:05 +00:00
cpq
1b5cc341a5 Add streaming client support, MG_EV_HTTP_CHUNK 2021-03-08 15:41:16 +00:00
cpq
c7e09bd7b4 Add SSI include file=, include virtual= 2021-01-02 17:57:51 +00:00
cpq
55f5f74658 Add mingw gcc and g++ tests 2020-12-25 19:24:51 +00:00
cpq
c3aae185df Add ipv6 server test 2020-12-22 10:16:31 +00:00
cpq
2e87783246 Add IPv6 client test 2020-12-22 09:44:59 +00:00
cpq
ddb700eee5 Fix openssl build 2020-12-20 21:50:46 +00:00
cpq
1052ee0766 Fix openssl build, and add openssl test 2020-12-20 21:45:58 +00:00
cpq
b0a5165b44 Uload coverage 2020-12-18 11:47:56 +00:00
cpq
348c579521 Add dns test case 2020-12-14 09:31:23 +00:00
cpq
09beadb98a Fix c++ fuzzer build 2020-12-13 16:56:30 +00:00
cpq
a0765ade6b Use -DMG_ENABLE_LINES for fuzzer build 2020-12-12 14:23:28 +00:00
cpq
d806ed5d5f Better coverage 2020-12-11 22:58:50 +00:00
cpq
30d4a1ad0f Fix mg_sntp_parse() 2020-12-11 13:16:51 +00:00
cpq
42d7865e14 Pre-built desktop server 2020-12-10 17:39:40 +00:00
cpq
d1b8f9e01f Fuzz-test mg_http_var and base64 2020-12-07 18:52:40 +00:00
cpq
7ea3293aba More tests 2020-12-07 08:54:58 +00:00
cpq
866c987409 Tuning test 2020-12-07 05:46:47 +00:00
cpq
72019b7427 Tuning test 2020-12-07 04:18:29 +00:00
cpq
d7a02d13e4 Add test++ linx++ 2020-12-07 03:47:37 +00:00
cpq
cb220837b9 Tuning test 2020-12-07 01:27:44 +00:00
cpq
629e55f97d Tuning test 2020-12-07 01:00:35 +00:00
cpq
cb7743fa39 Move tests -> test 2020-12-06 23:19:56 +00:00
cpq
87de05881c Add travis build 2020-12-05 11:34:58 +00:00
cpq
f2fba1d200 7.0 refactor 2020-12-05 11:26:32 +00:00
Sergey Lyubka
1eed770238 Moved Makefile and main.c to build/ 2013-08-18 23:02:43 +01:00
Sergey Lyubka
04fc209644 removing dmg dir on clean 2013-08-16 11:18:04 +01:00
Sergey Lyubka
421c16b2bb Added -DLUA_USE_DLOPEN, and added mongoose.o: mod_lua.c 2013-08-08 12:15:40 +01:00
Sergey Lyubka
d6b9f76e9c Added COPT to CFLAGS 2013-07-20 14:08:06 +01:00
Sergey Lyubka
feb3b5db96 Using $(FLAGS) for cocoa target 2013-07-15 10:52:27 +01:00
Sergey Lyubka
508b67d6f5 Removed /Gd from windows compilation flags, cause that breaks sqlite3 + fts (qsort callback is __cdecl, not __stdcall) 2013-07-15 10:41:47 +01:00
Sergey Lyubka
389ed4e099 Enabling FTS in sqlite 2013-07-15 10:28:52 +01:00
Sergey Lyubka
5fb9aca2e1 Added -mmacosx-version-min for macos build 2013-07-12 12:39:19 +01:00
Sergey Lyubka
a09ec8988e Added lua.lib target 2013-07-11 14:24:24 +01:00
Sergey Lyubka
6e59ad8a0d Fix for prepare_lua_environment 2013-05-19 01:25:10 +01:00
Sergey Lyubka
f4862b646d defined ALL_WINOBJS and using it for windows build 2013-05-18 15:21:52 +01:00
Sergey Lyubka
215ea28db0 Added lua to the repo 2013-05-14 13:41:44 +01:00
Sergey Lyubka
b3a511f9c5 Broken down cocoa target 2013-03-08 16:13:29 +00:00
Sergey Lyubka
fc9a9593d2 Added sqlite to linux_lua target 2013-02-27 10:44:42 +00:00
Sergey Lyubka
665770d602 cleaning up more files on make clean 2013-02-12 21:04:23 +00:00
Sergey Lyubka
079b9ec2c1 Added linux_lua target 2013-02-12 12:33:44 +00:00
Sergey Lyubka
fed2057a33 Added comment 2013-02-05 17:59:16 +00:00
Sergey Lyubka
f9311f0b30 Building cocoa version with lua + sqlite 2013-02-02 16:42:01 +00:00
Sergey Lyubka
62162ff3e4 Added /DNO_SSL_DL to w target 2013-02-01 13:53:31 +00:00
Sergey Lyubka
ce0826e285 Adding lua+sqlite functionality in the default windows binary build 2013-01-31 13:38:32 +00:00
Sergey Lyubka
8ce6cf61b7 Using relative path to yassl 2013-01-27 20:48:52 +00:00
Sergey Lyubka
2b87f909ce Makefile refactored 2013-01-25 20:27:52 +00:00
Sergey Lyubka
179761fd99 Removed LUA_FLAGS from CL flags 2013-01-23 21:14:11 +00:00
Sergey Lyubka
ed32e3be0f Added unix_unit_test and windows_unit_test targets 2013-01-22 08:59:13 +00:00
Sergey Lyubka
2169e6d77f Added -pthread to the CFLAGS 2013-01-21 17:51:56 +00:00
Rogerz Zhang
fe7c245a6b Fix building error under mingw 2013-01-18 21:22:44 +08:00
Sergey Lyubka
08afdfa8b6 better cleanup 2013-01-18 10:43:52 +00:00
Sergey Lyubka
eebdd06532 Added comdlg32.lib to GUILIB 2013-01-17 17:13:15 +00:00
Sergey Lyubka
c7e5573d08 Not building DLLs. Using separate target for cocoa mac app. 2013-01-16 23:43:06 +00:00
Sergey Lyubka
121391504f mongoose.app -> Mongoose.app 2013-01-10 16:24:12 +00:00
Sergey Lyubka
5b786a5089 make release corrected 2013-01-09 21:21:04 +00:00
Sergey Lyubka
c0150606f0 Removed bindings from the Makefile 2013-01-09 15:48:38 +00:00
Sergey Lyubka
38cc14a1af Initial version for the Macos app bundle 2013-01-03 15:46:47 +00:00
Sergey Lyubka
50c05c4eed Renamed win32 -> build 2013-01-02 18:21:46 +00:00
Sergey Lyubka
bf387f9544 Added Lua build instructions 2012-10-01 22:24:22 +01:00
Sergey Lyubka
fb8f0ed4d6 Better comments in Makefile 2012-09-27 23:58:35 +01:00
Sergey Lyubka
c189553c8b Cosmetic changes for CYA_SOURCES 2012-09-27 08:27:45 +01:00
Sergey Lyubka
451d077170 cygwin target added 2012-09-27 00:33:33 +01:00
Sergey Lyubka
8c1866a4af Lua server pages support 2012-09-26 23:37:03 +01:00
Sergey Lyubka
e490b30c38 _mongoose.dll -> mongoose.dll 2012-09-22 13:15:05 +01:00
Sergey Lyubka
f935ef832b _mongoose.dll -> mongoose.dll, _mongoose.so -> libbmongoose.so 2012-09-22 12:52:47 +01:00
Sergey Lyubka
79cdb77e5d Removed hard-coded CC value from Makefile 2012-09-22 12:27:20 +01:00