Commit graph

338 commits

Author SHA1 Message Date
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
9d95bf24c3 Formatting: Indent fixes 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
a9fe4037ea Add example plugin for topic hierarchy flattening.
Issue #3365
2025-09-16 16:13:18 +01:00
Roger A. Light
76eaef0419 Fix leak in password-file plugin on error
Unreleased changes
2025-08-24 11:33:00 +01:00
Roger A. Light
d0a94d0f41 Fix leak in acl-file plugin.
Unreleased
2025-08-23 23:31:42 +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
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
7c8391908f Don't free data->acl_anon 2025-08-22 12:37:05 +01:00
Roger A. Light
40f814a8dc Fix Coverity Scan #1589589
Leak on error in config load
2025-08-22 11:14:00 +01:00
Roger A. Light
e498168781 Fix oss-fuzz #439559900
Performance issue with acl files with thousands of ACLs in use
2025-08-22 10:03:42 +01:00
Roger A. Light
c64273f663 Fix build on Mac OS, introduce Mac OS CI workflow
Closes #3312
2025-08-14 08:38:45 +01:00
Roger A. Light
518abf49ff oss-fuzz: Fix broker_fuzz_acl_file timeout 2025-08-09 10:06:31 +01:00
Norbert Heusser
7a22685866 Fixed memory issue with property handling in persistence SQLite will restore
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-08-04 18:36:24 +01:00
Steve Hamann
2077283a30 Add script to migrate from Snapshot persistence to SQLite persistence
Signed-off-by: Steve Hamann <steve.hamann@cedalo.com>
2025-08-04 18:31:02 +01:00
Steve Hamann
2d6ad4a27f Add migration of mosquitto.conf to DynSec migration script
Signed-off-by: Steve Hamann <steve.hamann@cedalo.com>
2025-08-04 18:30:21 +01:00
Roger A. Light
65ad337bbb dynsec: Add getDetails command 2025-07-17 17:04:48 +01:00
Roger A. Light
0c0683094b Allow plugins to choose when their tick event is next called 2025-07-10 21:06:01 +01:00
Roger A. Light
0b4ab2f285 Move password file code to own plugin 2025-07-10 14:49:46 +01:00
Roger A. Light
c83ee48e5c Make acl-file function names clearer 2025-07-10 14:49:46 +01:00
Norbert Heusser
424df70395 Add support for will message to persistence API and Sqlite3 persistence plugin
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-07-10 00:52:33 +01:00
Steve Hamann
ff0afc8374 Implement migration script to migrate from ACL file to DynSec
Signed-off-by: Steve Hamann <steve.hamann@cedalo.com>
2025-07-10 00:46:17 +01:00
Roger A. Light
c522361d35 Move acl_file code to own file. 2025-07-10 00:39:51 +01:00
Roger A. Light
2ff2029c42 mosquitto_ctrl interactive shell mode 2025-04-16 15:42:51 +01:00
Roger A. Light
3511db6889 Whitespace tidy
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Coverage / coverage (push) Has been cancelled
Mosquitto - CMake / build (push) Has been cancelled
Mosquitto - Make ASAN / build (push) Has been cancelled
Mosquitto - Make / build (push) Has been cancelled
Windows build / mosquitto (push) Has been cancelled
2025-04-06 22:40:48 +01:00
Roger A. Light
f8d37b70a6 Merge branch 'fix-persist-plugin-expiry' of github.com:NorbertHeusser/mosquitto into NorbertHeusser-fix-persist-plugin-expiry 2025-02-26 09:59:32 +00:00
Roger A. Light
ee485341dd Merge branch 'develop' of github.com:andreaskem/mosquitto into andreaskem-develop 2025-02-25 17:02:16 +00:00
Roger A. Light
2f32fcd949 Move properties_to_json to libmosquitto_common 2024-06-18 17:54:02 +01:00
Roger A. Light
b5e21d146d Move password functions to libcommon. 2024-06-12 21:26:25 +01:00
Roger A. Light
db6ab6869a Fix mismatched alloc/frees 2024-04-25 16:20:14 +01:00
Roger Light
20b34150f2 Windows build fixes 2024-03-27 08:38:13 +00:00
Roger A. Light
df7fe15f75 Test vcpkg based build 2024-03-27 08:38:13 +00:00
Roger A. Light
5c8b676fec CMake make building plugins optional. 2024-03-25 07:56:23 +00:00
Roger A. Light
78cba447a2 Fix dynsec linking 2024-03-18 14:02:51 +00:00
Roger A. Light
4498193331 Refactor file functions to common static library. 2024-03-17 23:13:11 +00:00
Roger A. Light
16d465fa49 Refactor base64 functions to common static library. 2024-03-17 21:34:27 +00:00
Norbert Heusser
b8564daa20 Fixed deletion of expired session after restore from persistence plugin
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2024-03-12 07:54:18 +00:00
Roger A. Light
340c4f323f Rename cmake helper functions. 2024-03-05 09:36:15 +00:00
Roger A. Light
9691ab42f6 Fix incorrect json_get_int call. 2024-03-04 17:39:35 +00:00
Roger A. Light
bac0cdbfc3 Fix oss-fuzz priority issue 2024-03-02 19:44:45 +00:00
Roger A. Light
f39ecb3d27 Factor out a load of duplicated makefile code 2024-03-02 10:35:45 +00:00
Roger A. Light
dcd5b803f2 Merge branch 'fixes' into develop 2024-02-21 23:30:33 +00:00
Norbert Heusser
3656b991d5 Refactoring persist-sqlite plugin and moved functionality from
handle_connect.c into database.c

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2024-02-15 22:43:28 +00:00
Norbert Heusser
d68dd563db Persist-SQLite: Add new table version_info and addition wal_checkpoint on shutdown
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2024-02-15 22:43:28 +00:00
Roger A. Light
fe3b72ef61 Remove a load of cmake boilerplate 2024-02-15 13:39:11 +00:00
Roger A. Light
c6436ad6b2 Revert change of default ACL priority 2024-02-15 11:40:12 +00:00