53 Commits

Author SHA1 Message Date
Roger A. Light
16f41e61fc Add MOSQUITTO_UNSAFE_ALLOW_SYMLINKS env var
Setting this environment variable allows sensitive files to be read
through symlinks.

Closes #3461. Thanks to Jeff Cutsinger
2026-02-02 16:33:37 +00:00
Roger A. Light
7de6cb42ef Compiler warning fixes 2026-01-23 08:44:34 +00:00
Roger A. Light
b2aa092267 libcommon base64 unit tests 2025-12-01 00:05:36 +00:00
Roger A. Light
27aa1e14cb Fix libcommon log printing 2025-10-29 23:06:33 +00:00
Roger A. Light
2e669a1c32 mosquitto_read_file: Set return values early 2025-10-29 10:45:04 +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
0ba2436589 Remove unused srand() etc. functions 2025-10-15 11:49:13 +01:00
Roger A. Light
4d296b2f78 Remove magic number 2025-10-13 23:17:22 +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
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
4f943e91da Fix some install inconsistencies 2025-09-16 11:48:55 +01:00
Roger A. Light
bd40dda241 libcommon: Remove unused WITH_BROKER code 2025-08-23 08:52:24 +01:00
Roger A. Light
156e7be807 Fix Coverity Scan #1592959 2025-08-22 15:21:30 +01:00
Roger A. Light
8ba1017df4 Fix Coverity Scan #1619414
Leak of file handle on error
2025-08-22 13:00:21 +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
b1e78d3915 Fix coverity scan 159296, dereference after null check 2025-08-10 19:47:06 +01:00
Roger A. Light
14ce957168 Fix coverity scan 1619418, logically dead code 2025-08-10 19:42:54 +01:00
Roger A. Light
b8ffdb878e Merge from master 2025-07-25 19:13:51 +01:00
Roger A. Light
82256e14b0 Use mosquitto_read_file() in mosquitto_pub 2025-07-18 07:25:44 +01:00
Roger A. Light
e3b2d51002 mosquitto_read_file should return file length 2025-07-17 22:05:34 +01:00
Roger A. Light
8fc1c1e07f Various fixes
Dashboard include paths
Libcommon.so not being installed
snacraft packaging update
http-api able to use compile time definition
2025-07-11 00:39:56 +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
43dda2ae20 Fix some build variants 2025-07-10 16:08:49 +01:00
Roger A. Light
c0c03a9d18 Add basic http api listener
This can currently be used to serve stats and listener details over http/https
2025-07-10 00:53:03 +01:00
Roger A. Light
c522361d35 Move acl_file code to own file. 2025-07-10 00:39:51 +01:00
Roger A. Light
3511db6889 Whitespace tidy 2025-04-06 22:40:48 +01:00
Roger A. Light
1662641b25 Revert high CPU password hashing until separate threads are used 2025-02-27 22:34:47 +00:00
Roger A. Light
dd2c25c1cf Merge branch 'master' into develop 2024-10-19 22:13:14 +01:00
Roger A. Light
2f32fcd949 Move properties_to_json to libmosquitto_common 2024-06-18 17:54:02 +01:00
Roger A. Light
7faad7ca78 Move password functions to libcommon. 2024-06-18 17:54:00 +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 A. Light
48eddd5676 Check for mismatched mosquitto_malloc / free calls. 2024-04-25 14:59:46 +01:00
Roger A. Light
41a310a6f1 Fix line endings 2024-04-25 11:51:33 +01:00
Roger A. Light
b5f1ffde2a Refactor memory tracking to prevent underflow. 2024-04-25 11:47:16 +01:00
Roger Light
20b34150f2 Windows build fixes 2024-03-27 08:38:13 +00:00
Roger A. Light
79022d6b4d Make libmosquitto_common shared on Windows. 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
9065b579d0 Refactor topic functions to common static library. 2024-03-17 23:18:35 +00:00
Roger A. Light
4498193331 Refactor file functions to common static library. 2024-03-17 23:13:11 +00:00
Roger A. Light
8cc21d1fa4 Refactor random functions to common static library. 2024-03-17 21:57:15 +00:00
Roger A. Light
16d465fa49 Refactor base64 functions to common static library. 2024-03-17 21:34:27 +00:00
Roger A. Light
9fe8b95dcf Refactor property functions to common static library. 2024-03-17 20:56:14 +00:00
Roger A. Light
b5c25cf1d0 Refactor memory functions to common static library. 2024-03-17 10:30:07 +00:00
Roger A. Light
81ad44e677 Refactor topic check functions to common static library. 2024-03-17 08:15:22 +00:00