]> git.feebdaed.xyz Git - 0xmirror/civetweb.git/log
0xmirror/civetweb.git
15 months agoRemove duplicated codeql workflow
yubiuser [Sun, 15 Sep 2024 10:29:52 +0000 (12:29 +0200)]
Remove duplicated codeql workflow

Signed-off-by: yubiuser <github@yubiuser.dev>
15 months agoMerge pull request #1293 from civetweb/dependabot/github_actions/master/actions/check...
bel2125 [Sun, 15 Sep 2024 09:59:03 +0000 (11:59 +0200)]
Merge pull request #1293 from civetweb/dependabot/github_actions/master/actions/checkout-4

Bump actions/checkout from 2 to 4

15 months agoMerge pull request #1292 from civetweb/dependabot/github_actions/master/actions/uploa...
bel2125 [Sun, 15 Sep 2024 09:58:44 +0000 (11:58 +0200)]
Merge pull request #1292 from civetweb/dependabot/github_actions/master/actions/upload-artifact-4

Bump actions/upload-artifact from 1 to 4

15 months agoMerge pull request #1291 from civetweb/dependabot/github_actions/master/github/codeql...
bel2125 [Sun, 15 Sep 2024 09:58:25 +0000 (11:58 +0200)]
Merge pull request #1291 from civetweb/dependabot/github_actions/master/github/codeql-action-3

Bump github/codeql-action from 1 to 3

15 months agoMerge pull request #1283 from yubiuser/devcontainer
bel2125 [Sun, 15 Sep 2024 09:57:47 +0000 (11:57 +0200)]
Merge pull request #1283 from yubiuser/devcontainer

Add devcontainer

15 months agoMerge pull request #1284 from yubiuser/gihtub_CI
bel2125 [Sun, 15 Sep 2024 08:21:04 +0000 (10:21 +0200)]
Merge pull request #1284 from yubiuser/gihtub_CI

Add Github Action CI workflow

15 months agoBump actions/checkout from 2 to 4
dependabot[bot] [Sun, 15 Sep 2024 07:38:48 +0000 (07:38 +0000)]
Bump actions/checkout from 2 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
15 months agoBump actions/upload-artifact from 1 to 4
dependabot[bot] [Sun, 15 Sep 2024 07:38:46 +0000 (07:38 +0000)]
Bump actions/upload-artifact from 1 to 4

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 1 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v1...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
15 months agoBump github/codeql-action from 1 to 3
dependabot[bot] [Sun, 15 Sep 2024 07:38:44 +0000 (07:38 +0000)]
Bump github/codeql-action from 1 to 3

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
15 months agoMerge pull request #1287 from yubiuser/dependabot2
bel2125 [Sun, 15 Sep 2024 07:37:58 +0000 (09:37 +0200)]
Merge pull request #1287 from yubiuser/dependabot2

Add dependabot to keep github-actions up-to-date

15 months agoMerge pull request #1286 from DL6ER/fix/lua_kepler_headers
bel2125 [Sun, 15 Sep 2024 07:31:48 +0000 (09:31 +0200)]
Merge pull request #1286 from DL6ER/fix/lua_kepler_headers

Fix header generation for Lua Server Pages (Kepler syntax)

15 months agoMerge pull request #1282 from DL6ER/fix/form_buf_fill
bel2125 [Sun, 15 Sep 2024 07:30:30 +0000 (09:30 +0200)]
Merge pull request #1282 from DL6ER/fix/form_buf_fill

Fix variable signedness in handle_form.inl

15 months agoMerge pull request #1281 from DL6ER/fix/mbedtls_tls13
bel2125 [Sun, 15 Sep 2024 07:29:53 +0000 (09:29 +0200)]
Merge pull request #1281 from DL6ER/fix/mbedtls_tls13

mbedTLS: Fix TLS 1.3 support

16 months agoUse wildcard matching
yubiuser [Fri, 23 Aug 2024 11:40:49 +0000 (13:40 +0200)]
Use wildcard matching

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoKeep only FreeBSD on Travis
yubiuser [Fri, 23 Aug 2024 11:25:02 +0000 (13:25 +0200)]
Keep only FreeBSD on Travis

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoRevert https://github.com/civetweb/civetweb/commit/19b70adc70ca66cc862f3fd065e354af64...
yubiuser [Fri, 23 Aug 2024 10:57:42 +0000 (12:57 +0200)]
Revert https://github.com/civetweb/civetweb/commit/19b70adc70ca66cc862f3fd065e354af64b7b011

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoRun unittests
yubiuser [Fri, 23 Aug 2024 10:55:10 +0000 (12:55 +0200)]
Run unittests

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months ago--no-install-recommends
yubiuser [Tue, 20 Aug 2024 11:50:55 +0000 (13:50 +0200)]
--no-install-recommends

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoAdd clang and set --no-install-recommends
yubiuser [Tue, 20 Aug 2024 11:03:27 +0000 (13:03 +0200)]
Add clang and set --no-install-recommends

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoFix Lua SQLite Verification Hash
yubiuser [Sun, 18 Aug 2024 20:34:10 +0000 (22:34 +0200)]
Fix Lua SQLite Verification Hash

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoAdd dependabot to keep github-actions up-to-date
yubiuser [Sun, 18 Aug 2024 20:23:44 +0000 (22:23 +0200)]
Add dependabot to keep github-actions up-to-date

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoBump macosx-version-min to 10.6 to fix deprecation warning
yubiuser [Sun, 18 Aug 2024 20:02:04 +0000 (22:02 +0200)]
Bump macosx-version-min to 10.6 to fix deprecation warning

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoDo not set XOPEN__SOURCE when USE_COCOA is set
yubiuser [Sun, 18 Aug 2024 20:01:30 +0000 (22:01 +0200)]
Do not set XOPEN__SOURCE when USE_COCOA is set

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoDrop i386 arch for MacOS
yubiuser [Sun, 18 Aug 2024 20:00:28 +0000 (22:00 +0200)]
Drop i386 arch for MacOS

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoMacOS builds
yubiuser [Sun, 18 Aug 2024 19:59:31 +0000 (21:59 +0200)]
MacOS builds

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoAdd linux build
yubiuser [Sun, 18 Aug 2024 08:29:46 +0000 (10:29 +0200)]
Add linux build

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoAdd devcontainer
yubiuser [Sun, 18 Aug 2024 07:55:20 +0000 (09:55 +0200)]
Add devcontainer

Signed-off-by: yubiuser <github@yubiuser.dev>
16 months agoFix header generation for Lua Server Pages (Kepler syntax).
DL6ER [Sun, 18 Aug 2024 05:21:34 +0000 (07:21 +0200)]
Fix header generation for Lua Server Pages (Kepler syntax).

The currently used code has send_no_cache_header() and send_additional_header() but NOT actually a call to mg_response_header_send(). When NO_RESPONSE_BUFFERING is not set (default), this merely adds the additional headers to the buffer but does not send them. As a final call to mg_response_header_send() was indeed missing here, they are never sent causing, e.g., headers added through the "additional_headers" config string to be ignored for Kepler LSP. Similarly, CORS and cache-control headers were missing in this case.

Signed-off-by: DL6ER <dl6er@dl6er.de>
16 months agoAdd missing PSA (Platform Security Architecture) cryptography API initialization
DL6ER [Fri, 16 Aug 2024 16:57:35 +0000 (18:57 +0200)]
Add missing PSA (Platform Security Architecture) cryptography API initialization

It is mandatory when PSA is used which is, in turn, mandatory when using TLS 1.3 (`MBEDTLS_SSL_PROTO_TLS1_3`). When not being initialized, the server will finish startup but any encrypted traffic will cause errors deep inside the mbedTLS library (return code `0x6c00 == MBEDTLS_ERR_SSL_INTERNAL_ERROR`).

Signed-off-by: DL6ER <dl6er@dl6er.de>
16 months agoFix comparison of integer expressions of different signedness warnings in mg_handle_f...
DL6ER [Thu, 15 Aug 2024 19:33:26 +0000 (21:33 +0200)]
Fix comparison of integer expressions of different signedness warnings in mg_handle_form_request (GCC -Wsign-compare)

Signed-off-by: DL6ER <dl6er@dl6er.de>
16 months agoMerge pull request #1280 from leyuskckiran1510/api-docs-typo
bel2125 [Wed, 14 Aug 2024 07:28:42 +0000 (09:28 +0200)]
Merge pull request #1280 from leyuskckiran1510/api-docs-typo

docs: fix typo on mg_form_data_handler api docs

16 months agoMerge pull request #1279 from DL6ER/lua/kepler_errorpages
bel2125 [Wed, 14 Aug 2024 07:28:12 +0000 (09:28 +0200)]
Merge pull request #1279 from DL6ER/lua/kepler_errorpages

Send correct HTTP error code when serving custom error pages

16 months agoMerge pull request #1278 from DL6ER/lua/nodlopen
bel2125 [Wed, 14 Aug 2024 07:27:01 +0000 (09:27 +0200)]
Merge pull request #1278 from DL6ER/lua/nodlopen

Respect NO_DLOPEN also in Lua code

16 months agodocs: fix typo on mg_form_data_handler api docs
leyuskckiran1510 [Mon, 12 Aug 2024 16:39:37 +0000 (22:24 +0545)]
docs: fix typo on mg_form_data_handler api docs

16 months agoSend correct HTTP error code when serving an error page. Currently, this is broken...
DL6ER [Sat, 10 Aug 2024 11:04:10 +0000 (13:04 +0200)]
Send correct HTTP error code when serving an error page. Currently, this is broken and even 404 errors are served with HTTP 200 OK while they clearly shouldn't.

Signed-off-by: DL6ER <dl6er@dl6er.de>
16 months agoRespect NO_DLOPEN also in Lua code
DL6ER [Sat, 10 Aug 2024 10:58:15 +0000 (12:58 +0200)]
Respect NO_DLOPEN also in Lua code

Signed-off-by: DL6ER <dl6er@dl6er.de>
16 months agoMerge pull request #1277 from timtjtim/multipart-form-data-#1276
bel2125 [Fri, 9 Aug 2024 20:36:25 +0000 (22:36 +0200)]
Merge pull request #1277 from timtjtim/multipart-form-data-#1276

Multipart form data #1276

16 months ago[#1276] limit preamble, add test case
tim [Thu, 8 Aug 2024 22:37:15 +0000 (23:37 +0100)]
[#1276] limit preamble, add test case

16 months ago[#1276] remove debug method
tim [Thu, 8 Aug 2024 22:28:30 +0000 (23:28 +0100)]
[#1276] remove debug method

16 months ago[#1276] mutipart form data
tim [Thu, 8 Aug 2024 01:36:33 +0000 (02:36 +0100)]
[#1276] mutipart form data

- Add some tests
- Add fixes for preamble, epilogue, transport padding, boundary lines

16 months agoMerge pull request #1261 from ttytm/ndebug-reminders
bel2125 [Wed, 7 Aug 2024 11:37:36 +0000 (13:37 +0200)]
Merge pull request #1261 from ttytm/ndebug-reminders

Disable `mg_` reminders when `NDEBUG` is defined

16 months agoMerge pull request #1275 from yafiyogi/CMake-Build-Allow-USE_HTTP2
bel2125 [Wed, 7 Aug 2024 11:36:53 +0000 (13:36 +0200)]
Merge pull request #1275 from yafiyogi/CMake-Build-Allow-USE_HTTP2

Add cmake option CIVETWEB_ENABLE_HTTP2 to allow HTTP2 builds.

16 months ago[#1276] add test cases for multipart form data
tim [Tue, 6 Aug 2024 01:25:30 +0000 (02:25 +0100)]
[#1276] add test cases for multipart form data

17 months agoRemove 'add_definitions(-Wno-gnu-zero-variadic-macro-arguments)'.
yafiyogi [Mon, 22 Jul 2024 10:14:04 +0000 (11:14 +0100)]
Remove 'add_definitions(-Wno-gnu-zero-variadic-macro-arguments)'.

17 months agoAdd cmake option CIVETWEB_ENABLE_HTTP2 to allow HTTP2 builds.
yafiyogi [Sat, 20 Jul 2024 14:12:08 +0000 (15:12 +0100)]
Add cmake option CIVETWEB_ENABLE_HTTP2 to allow HTTP2 builds.

17 months agoFormat source after merge
bel2125 [Thu, 11 Jul 2024 19:40:52 +0000 (21:40 +0200)]
Format source after merge

17 months agoRemove donation links
bel2125 [Thu, 11 Jul 2024 19:39:48 +0000 (21:39 +0200)]
Remove donation links

17 months agoMerge pull request #1266 from ttytm/rename-auth-header-struct
bel2125 [Thu, 11 Jul 2024 07:57:17 +0000 (09:57 +0200)]
Merge pull request #1266 from ttytm/rename-auth-header-struct

Rename ah struct to auth_header

17 months agoMerge pull request #1270 from mmahringer/feature/fix_client
bel2125 [Thu, 11 Jul 2024 07:56:40 +0000 (09:56 +0200)]
Merge pull request #1270 from mmahringer/feature/fix_client

Only poll thread_shutdown_notification_socket for server context

17 months agoOnly poll thread_shutdown_notification_socket for server context
Martin Mahringer [Fri, 5 Jul 2024 12:01:11 +0000 (14:01 +0200)]
Only poll thread_shutdown_notification_socket for server context

The socket thread_shutdown_notification_socket must only be used for
context type CONTEXT_SERVER.

18 months agoRename ah struct to auth_header
Turiiya [Sun, 16 Jun 2024 17:01:07 +0000 (19:01 +0200)]
Rename ah struct to auth_header

18 months agoMerge pull request #1265 from JamieStM/patch-1
bel2125 [Thu, 13 Jun 2024 19:20:04 +0000 (21:20 +0200)]
Merge pull request #1265 from JamieStM/patch-1

Update CIVETWEB_VERSION to 1.16.0 in CMakeLists.txt

18 months agoMerge pull request #1264 from morgonf/master
bel2125 [Thu, 13 Jun 2024 19:18:16 +0000 (21:18 +0200)]
Merge pull request #1264 from morgonf/master

Add VERSION option to the project() command

18 months agoUpdate CIVETWEB_VERSION to 1.16.0 in CMakeLists.txt
Jamie St Martin [Wed, 12 Jun 2024 18:11:06 +0000 (11:11 -0700)]
Update CIVETWEB_VERSION to 1.16.0 in CMakeLists.txt

Our call to `find_package(civetweb 1.16.0 EXACT CONFIG REQUIRED)` is failing with version 1.16 of civetweb installed via vcpkg, because this variable is set incorrectly and therefore `civetweb-config-version.cmake` contains the wrong version.

18 months agoMerge pull request #1 from morgonf/morgonf-patch-1
morgonf [Tue, 11 Jun 2024 13:37:07 +0000 (16:37 +0300)]
Merge pull request #1 from morgonf/morgonf-patch-1

Update CMakeLists.txt

18 months agoUpdate CMakeLists.txt
morgonf [Tue, 11 Jun 2024 13:36:24 +0000 (16:36 +0300)]
Update CMakeLists.txt

To correctly fill in the keyword fields "Version" in the pkg-config files section, you must specify the value of the "VERSION" option when calling the project() command

18 months agoDisable `mg_` reminders when NDEBUG is defined
Turiiya [Fri, 31 May 2024 02:41:13 +0000 (04:41 +0200)]
Disable `mg_` reminders when NDEBUG is defined

19 months agoMerge pull request #1256 from drew-wells/master
bel2125 [Mon, 29 Apr 2024 19:21:16 +0000 (21:21 +0200)]
Merge pull request #1256 from drew-wells/master

Fix for slow CGI

20 months agoFix for slow CGI
drew-wells [Mon, 22 Apr 2024 14:11:44 +0000 (15:11 +0100)]
Fix for slow CGI

Don't use fread() to read from CGI scripts because of possible buffering.

20 months agoMerge pull request #1255 from darkuranium/master
bel2125 [Fri, 12 Apr 2024 19:48:23 +0000 (21:48 +0200)]
Merge pull request #1255 from darkuranium/master

Fix building with MbedTLS

20 months agoFix building with MbedTLS
Tim Čas [Wed, 3 Apr 2024 11:10:10 +0000 (13:10 +0200)]
Fix building with MbedTLS

21 months agoUpdate copyright year
bel2125 [Sun, 24 Mar 2024 16:41:39 +0000 (17:41 +0100)]
Update copyright year

21 months agoAdd MIME type for .mjs extension (#1252)
bel2125 [Sun, 24 Mar 2024 16:40:05 +0000 (17:40 +0100)]
Add MIME type for .mjs extension (#1252)

21 months agoMerge pull request #1246 from Crispy-fried-chicken/patch-2
bel2125 [Wed, 20 Mar 2024 09:06:55 +0000 (10:06 +0100)]
Merge pull request #1246 from Crispy-fried-chicken/patch-2

fix the negation overflow

21 months agoMerge pull request #1245 from Crispy-fried-chicken/patch-1
bel2125 [Wed, 28 Feb 2024 20:59:40 +0000 (21:59 +0100)]
Merge pull request #1245 from Crispy-fried-chicken/patch-1

fix Integer overflow

21 months agofix the negation overflow
Yiheng Cao [Wed, 28 Feb 2024 07:21:15 +0000 (15:21 +0800)]
fix the negation overflow

21 months agofix Integer overflow
Yiheng Cao [Wed, 28 Feb 2024 07:15:06 +0000 (15:15 +0800)]
fix Integer overflow

21 months agoMerge pull request #1238 from egorkonovalov/master
bel2125 [Tue, 27 Feb 2024 20:37:17 +0000 (21:37 +0100)]
Merge pull request #1238 from egorkonovalov/master

Fix typo in /docs/UserManual.md

21 months agoRemove script. See #1231
bel2125 [Tue, 27 Feb 2024 20:08:32 +0000 (21:08 +0100)]
Remove script. See #1231

22 months agoFix typo in /docs/UserManual.md
Egor Konovalov [Mon, 12 Feb 2024 13:56:05 +0000 (13:56 +0000)]
Fix typo in /docs/UserManual.md

23 months agoSome compilers might have an issue with declarations inside "for"
bel2125 [Sat, 30 Dec 2023 20:54:42 +0000 (21:54 +0100)]
Some compilers might have an issue with declarations inside "for"

Fixes #1228

23 months agowebsocket client "magic" key should be random
bel2125 [Sat, 30 Dec 2023 10:18:38 +0000 (11:18 +0100)]
websocket client "magic" key should be random

Fixes #1220

23 months agoMerge pull request #1225 from linev/cmake_dom_socket
bel2125 [Sat, 30 Dec 2023 10:03:42 +0000 (11:03 +0100)]
Merge pull request #1225 from linev/cmake_dom_socket

[cmake] let enable X DOM sockets

2 years ago[cmake] let enable X DOM sockets
Sergey Linev [Mon, 11 Dec 2023 09:57:43 +0000 (10:57 +0100)]
[cmake] let enable X DOM sockets

Missing in cmake

2 years agoAdd wasm mime type
bel2125 [Mon, 4 Dec 2023 07:32:52 +0000 (08:32 +0100)]
Add wasm mime type

Fixes #1217

2 years agoMerge branch 'master' of https://github.com/civetweb/civetweb
bel2125 [Mon, 4 Dec 2023 07:00:53 +0000 (08:00 +0100)]
Merge branch 'master' of https://github.com/civetweb/civetweb

2 years agoMerge pull request #1215 from IVOES/master
bel2125 [Tue, 28 Nov 2023 18:15:28 +0000 (19:15 +0100)]
Merge pull request #1215 from IVOES/master

Add CodeQL Workflow for Code Security Analysis

2 years agoFixes for old coding standard
bel2125 [Wed, 22 Nov 2023 06:39:01 +0000 (07:39 +0100)]
Fixes for old coding standard

2 years agoAppveyor build issue: Remove empty line in appveyor file
bel2125 [Sun, 19 Nov 2023 18:33:54 +0000 (19:33 +0100)]
Appveyor build issue: Remove empty line in appveyor file

2 years agoAdd shutdown sockets only for server
bel2125 [Sun, 19 Nov 2023 18:31:54 +0000 (19:31 +0100)]
Add shutdown sockets only for server

Test possible fix for #1214

2 years agoBetter error handling in Lua scripts
The-EG [Sun, 19 Nov 2023 13:07:36 +0000 (14:07 +0100)]
Better error handling in Lua scripts

(Merge code change from #1213)

2 years agoFormat code
bel2125 [Sun, 19 Nov 2023 12:51:06 +0000 (13:51 +0100)]
Format code

2 years agoMerge pull request #1211 from ffontaine/master
bel2125 [Sun, 19 Nov 2023 12:35:06 +0000 (13:35 +0100)]
Merge pull request #1211 from ffontaine/master

resources/Makefile.in-lua: fix build with Lua 5.1

2 years agoMerge pull request #1201 from f3d0rov/patch-1
bel2125 [Sun, 19 Nov 2023 12:34:39 +0000 (13:34 +0100)]
Merge pull request #1201 from f3d0rov/patch-1

fix minor typo in docs/api/mg_request_info.md

2 years agoresources/Makefile.in-lua: fix build with Lua 5.1
Fabrice Fontaine [Mon, 6 Nov 2023 20:38:02 +0000 (21:38 +0100)]
resources/Makefile.in-lua: fix build with Lua 5.1

Fix the following build failure with Lua 5.1 raised since version 1.16
and
https://github.com/civetweb/civetweb/commit/82ba5a04c9a1ca980d8dfe00c18e086017e8ab25:

/home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sh4-buildroot-linux-gnu/13.2.0/../../../../sh4-buildroot-linux-gnu/bin/ld: out/src/third_party/lua_struct.o: in function `luaopen_struct':
lua_struct.c:(.text+0xce4): undefined reference to `luaL_newlib'

Fixes:
 - http://autobuild.buildroot.org/results/7459b504e52f473c5830c0f3c7bffd037f6e1770

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2 years agoMerge pull request #1209 from DL6ER/fix/extended-ASCII-URIs
bel2125 [Thu, 2 Nov 2023 17:57:08 +0000 (18:57 +0100)]
Merge pull request #1209 from DL6ER/fix/extended-ASCII-URIs

Truly allow all non-control characters in URIs

2 years agoMerge pull request #1208 from DL6ER/fix/mbedtls
bel2125 [Wed, 1 Nov 2023 20:41:21 +0000 (21:41 +0100)]
Merge pull request #1208 from DL6ER/fix/mbedtls

Fix compiling CivetWeb + mbedTLS in DEBUG mode

2 years agoMerge pull request #1206 from HypoYoung/cmake-support-mbedtls
bel2125 [Wed, 1 Nov 2023 20:31:44 +0000 (21:31 +0100)]
Merge pull request #1206 from HypoYoung/cmake-support-mbedtls

cmake compile support mbedtls

2 years agostruct mbedtls_ssl_context->state is only available using the macro MBEDTLS_PRIVATE...
DL6ER [Tue, 31 Oct 2023 07:42:58 +0000 (08:42 +0100)]
struct mbedtls_ssl_context->state is only available using the macro MBEDTLS_PRIVATE(state)

Signed-off-by: DL6ER <dl6er@dl6er.de>
2 years agoTruly allow all non-control characters in URIs
DL6ER [Tue, 31 Oct 2023 07:47:45 +0000 (08:47 +0100)]
Truly allow all non-control characters in URIs

Signed-off-by: DL6ER <dl6er@dl6er.de>
2 years agoAdd CodeQL Workflow for Code Security Analysis
Brian [Sun, 29 Oct 2023 19:29:20 +0000 (15:29 -0400)]
Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis

This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.

We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.

Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.

Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.

Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/).

Signed-off-by: Brian <bayuan@purdue.edu>
2 years agoAdd CodeQL Workflow for Code Security Analysis
Brian [Fri, 20 Oct 2023 05:03:35 +0000 (01:03 -0400)]
Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis

This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.

We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.

Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.

Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.

Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/).

Signed-off-by: Brian <bayuan@purdue.edu>
2 years agoAdd CodeQL Workflow for Code Security Analysis
Brian [Wed, 18 Oct 2023 20:53:01 +0000 (16:53 -0400)]
Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis

This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.

We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every pull request (functionality to run on every push to main branches is included as a comment for convenience).
- Runs daily.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for git submodules, focusing only on our own codebase.

Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.

Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.

Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation (https://codeql.github.com/ and https://codeql.github.com/docs/).

Signed-off-by: Brian <bayuan@purdue.edu>
2 years agocmake compile support mbedtls
HypoYoung [Wed, 18 Oct 2023 12:43:32 +0000 (20:43 +0800)]
cmake compile support mbedtls

2 years agoMerge pull request #1204 from edwinvp/patch-2
bel2125 [Sun, 15 Oct 2023 16:55:36 +0000 (18:55 +0200)]
Merge pull request #1204 from edwinvp/patch-2

Self-signed certificate key size from 1024 to 2048

2 years agoSelf-signed certificate key size from 1024 to 2048
E. van Putten [Thu, 12 Oct 2023 11:58:02 +0000 (13:58 +0200)]
Self-signed certificate key size from 1024 to 2048

The current self-signed certificate doesn't work. It will cause an SSL error (EE_KEY_TOO_SMALL) when loading the PEM file.

2 years agoAdd CodeQL Workflow for Code Security Analysis
Brian [Thu, 12 Oct 2023 00:05:37 +0000 (20:05 -0400)]
Add CodeQL Workflow for Code Security Analysis

Add CodeQL Workflow for Code Security Analysis

This pull request introduces a CodeQL workflow to enhance the security analysis of our repository. CodeQL is a powerful static analysis tool that helps identify and mitigate security vulnerabilities in our codebase. By integrating this workflow into our GitHub Actions, we can proactively identify and address potential issues before they become security threats.

We added a new CodeQL workflow file (.github/workflows/codeql.yml) that
- Runs on every push and pull request to the main branch.
- Excludes queries with a high false positive rate or low-severity findings.
- Does not display results for third-party code, focusing only on our own codebase.

Testing:
To validate the functionality of this workflow, we have run several test scans on the codebase and reviewed the results. The workflow successfully compiles the project, identifies issues, and provides actionable insights while reducing noise by excluding certain queries and third-party code.

Deployment:
Once this pull request is merged, the CodeQL workflow will be active and automatically run on every push and pull request to the main branch. To view the results of these code scans, please follow these steps:
1. Under the repository name, click on the Security tab.
2. In the left sidebar, click Code scanning alerts.

Additional Information:
- You can further customize the workflow to adapt to your specific needs by modifying the workflow file.
- For more information on CodeQL and how to interpret its results, refer to the GitHub documentation and the CodeQL documentation.

Signed-off-by: Brian <bayuan@purdue.edu>
2 years agofix minor typo in docs/api/mg_request_info.md
Evan Fedorov [Sun, 1 Oct 2023 16:17:30 +0000 (19:17 +0300)]
fix minor typo in docs/api/mg_request_info.md

Added missing underscore symbol to `remote_addr`.

2 years agoMerge pull request #1196 from kloczek/master
bel2125 [Fri, 15 Sep 2023 14:22:30 +0000 (16:22 +0200)]
Merge pull request #1196 from kloczek/master

install pkgconfig files in libdir

2 years agoinstall pkgconfig files in libdir
Tomasz Kłoczko [Sat, 9 Sep 2023 11:27:58 +0000 (11:27 +0000)]
install pkgconfig files in libdir

pkgconfig files are arch dependend files so they needs to be installed
in libdir.

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>