1974 Commits

Author SHA1 Message Date
Roger A. Light
a726ff8846 Send acceptable CAs when require_certificate is true
Closes #3403
2025-11-25 23:42:28 +00:00
Roger A. Light
27820a58c6 Add upper limit to auto_id_prefix
This prevents uint16_t overflow later
2025-11-01 08:32:43 +00:00
Roger A. Light
e3f1438a69 Add missing '/' to special chars check 2025-11-01 08:06:25 +00:00
Roger A. Light
1566b8d3f2 Formatting 2025-10-29 23:06:50 +00:00
Roger A. Light
27aa1e14cb Fix libcommon log printing 2025-10-29 23:06:33 +00:00
Roger A. Light
a3ea371e39 Fix http api allow anon reporting 2025-10-29 22:16:50 +00:00
Roger A. Light
6274730810 libcommon: Use mosquitto_fopen in mosquitto_read_file 2025-10-29 10:44:03 +00:00
Roger A. Light
c641f1d45a Refactor handling of accepted publish messages 2025-10-21 22:52:16 +01:00
Roger A. Light
2c2287f1a5 Remove unused variables. 2025-10-21 22:52:16 +01:00
Roger A. Light
0ba2436589 Remove unused srand() etc. functions 2025-10-15 11:49:13 +01:00
Roger A. Light
ed88d3a480 Control topic: Return error when request sent to missing endpoint 2025-10-14 10:43:31 +01:00
Roger A. Light
711f647921 Add ACL support to http-api 2025-10-14 09:22:47 +01:00
Roger A. Light
dd83c8e97a Add authentication to http-api 2025-10-14 09:04:29 +01:00
Roger A. Light
29b1aed759 Ensure http_dir always end in a directory separator 2025-10-13 21:38:52 +01:00
Roger A. Light
a0fa07f9ed Check return value of openssl ASN1_string_[get0_]data() functions for NULL.
This prevents a crash in case of incorrect certificate handling in openssl.

Closes #3390. Thanks to Qingpeng Du.
2025-10-11 22:43:09 +01:00
Roger A. Light
f3a9fbb78c Check *_get_ex_data() and *_set_ex_data() return values.
Closes #3389. Thanks to Qingpeng Du.
2025-10-11 22:43:09 +01:00
Roger A. Light
a8eaed2d62 Check return value of openssl ASN1_string_[get0_]data() functions for NULL.
This prevents a crash in case of incorrect certificate handling in openssl.

Closes #3390. Thanks to Qingpeng Du.
2025-10-11 22:16:41 +01:00
Roger A. Light
0e04dfc032 Check *_get_ex_data() and *_set_ex_data() return values.
Closes #3389. Thanks to Qingpeng Du.
2025-10-11 22:16:15 +01:00
Roger A. Light
602cd2be42 FIx for #3388
Thanks to nickajacks1
2025-10-10 23:09:02 +01:00
Roger A. Light
9de56b8816 Meaningful return codes,plus remove a duplicate line 2025-10-10 14:30:18 +01:00
Roger A. Light
53f5ab2ea0 Fix leak on http api file request 2025-09-17 17:00:58 +01:00
Roger A. Light
0a6fa2ee90 Uncrustify config, plus updated format changes 2025-09-17 12:48:02 +01:00
Roger A. Light
460995652e Formatting: Apply to C headers 2025-09-17 12:48:02 +01:00
Roger A. Light
7ea73f6d60 Formatting: Forbid single line if statements
These hide cases from coverage checks
2025-09-17 12:48:02 +01:00
Roger A. Light
48b76e49f8 Formatting: Misc automatic formatting changes 2025-09-17 12:03:06 +01:00
Roger A. Light
883fdb2ad2 Formatting: Double indent continuation 2025-09-17 12:03:06 +01:00
Roger A. Light
6e7ddef145 Formatting: Always include comma for last enum
Plus some spacing
2025-09-17 12:03:06 +01:00
Roger A. Light
d743413ac3 Formatting: Spacing consistency 2025-09-17 12:03:06 +01:00
Roger A. Light
67ad22df0a Formatting: Double space before functions. 2025-09-17 12:03:03 +01:00
Roger A. Light
1c153b7266 MHD_start_daemon doesn't like NULL options 2025-09-16 11:48:55 +01:00
Roger A. Light
7c3e849a4a Add dashboard to Windows installers 2025-09-16 11:48:55 +01:00
Roger A. Light
737a6ee413 Snap: Update packaging for http dashboard 2025-09-16 11:48:55 +01:00
Roger A. Light
0811580058 Fix potential realloc leaks caused by errors on startup only
Closes #3363. Thanks to songsong-L
2025-09-10 15:42:18 +01:00
Roger A. Light
dfde35aa0f Add compile time checks for whether -lanl is required
Prior to glibc 2.34 this was required
2025-09-02 11:25:33 +01:00
Roger A. Light
9be6f9a409 Add compile time checks for whether -lanl is required
Prior to glibc 2.34 this was required
2025-09-02 10:45:24 +01:00
Roger A. Light
92cc2a159f Improve confusing macro guarded code 2025-08-27 13:55:37 +01:00
Roger A. Light
f717e4c96f Don't increment array counts until after realloc has succeeded 2025-08-25 10:15:25 +01:00
Roger A. Light
0f96d25b74 Fix session expiry list corruption
This happens if a client with session-expiry-interval set disconnects,
is kicked by a plugin, and then expires.
2025-08-25 08:58:14 +01:00
Roger A. Light
f604b09f57 Fix session expiry list corruption
This happens if a client with session-expiry-interval set disconnects,
is kicked by a plugin, and then expires.
2025-08-25 08:50:14 +01:00
Roger A. Light
3ecbf701a4 Fix variety of Coverity Scan issues in tests 2025-08-23 22:34:34 +01:00
Roger A. Light
d9ce9006b5 Fix realloc leaks on failure 2025-08-23 21:35:19 +01:00
Roger A. Light
ed9936e39d Exit broker on reload if acl_file or password_file detect invalid input
Also exit if a plugin returns an error code from the RELOAD event.

Closes #3350.
2025-08-23 08:52:24 +01:00
Roger A. Light
3bf502dab0 Expand logging of disconnect errors. 2025-08-23 00:43:30 +01:00
Roger A. Light
a7ea99dde9 Fix Coverity Scan #1491937 2025-08-22 16:18:07 +01:00
Roger A. Light
ad8bcd581e Performance enhancement by not computing hash values more than needed 2025-08-22 16:10:41 +01:00
Roger A. Light
7c0b66e949 Fix Coverity Scan #1519028 2025-08-22 15:34:31 +01:00
Roger A. Light
6b6a400dbd Fix Coverity Scan #1353076 2025-08-22 15:30:41 +01:00
Roger A. Light
aeec9dd14b Fix Coverity Scan #1549125 2025-08-22 15:23:56 +01:00
Roger A. Light
51eb1cd70e Fix Coverity Scan #1592960 2025-08-22 15:19:25 +01:00
Roger A. Light
8d7c7a55c4 Fix Coverity Scan #1619413 2025-08-22 15:13:57 +01:00