Commit Graph

1056 Commits

Author SHA1 Message Date
Roger A. Light
f7852e5be4 read_header is only ever called when all data has been read
This means setting everything back to 0 is the correct approach
2025-11-28 00:49:48 +00:00
Roger A. Light
58c34669a5 Refactor oversize incoming packet check 2025-11-27 12:24:12 +00:00
Roger A. Light
49d71f2bd9 Simplify stopping the thread in libmosquitto 2025-11-23 23:11:56 +00:00
Roger A. Light
445f27b0d6 Unconditionally init/destroy client mutexes
This removes the remote chance that we may init but then not destroy, or
destroy after not initing
2025-11-01 08:19:17 +00:00
Roger A. Light
0ba2436589 Remove unused srand() etc. functions 2025-10-15 11:49:13 +01:00
Roger A. Light
1bc14e6aa8 Support parsing future MQTT v5 properties with id value > 128 2025-10-13 22:23:12 +01:00
Roger A. Light
a15020311c Set verify hostname if tls_use_os_certs is true. 2025-10-13 22:02:50 +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
84aeb282e3 Fix: session handling when per_listener_settings is set to true
Closes #2618
Closes #2526

Thanks to Reuben Miller and llamaonaskateboard.
2025-09-17 17:02:09 +01:00
Roger A. Light
f4ccfd55f4 Fix spurious compiler warning 2025-09-17 12:49:41 +01:00
Roger A. Light
4c24b92e34 Formatting: Apply to C++ files 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
5e20df0031 Simplify preprocessor macros 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
5f2717cc9d Remove chance any includes happen before _GNU_SOURCE is set 2025-08-27 14:09:31 +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
a35efd9c0d Only cleanup TLS if it is initialised.
Closes #2975
2025-08-09 22:43:11 +01:00
Roger A. Light
e9e3e62a45 Add initial size limits for non-PUBLISH packets 2025-08-09 20:33:38 +01:00
Roger A. Light
6aad551ed0 Fix oss-fuzz 379779807
Regression in unreleased code
2025-08-09 00:12:55 +01:00
Roger A. Light
5bedf53d28 Remove symbian compile checks 2025-08-08 23:59:19 +01:00
Roger A. Light
3186e32a74 Remove unnecessary feature macros
Closes #3268
Closes #3141
2025-08-08 23:59:19 +01:00
Roger A. Light
8553f038b2 Fix build warning 2025-08-08 23:59:19 +01:00
n4n5
d5c0f23d4f fix: add context to error message
Signed-off-by: n4n5 <its.just.n4n5@gmail.com>
2025-08-08 18:10:32 +01:00
Norbert Heusser
bb094ca281 Fixed outgoing client message state from persistence plugin API
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-08-07 23:01:38 +01:00
Roger A. Light
0e2bd89fe0 Remove no longer needed librt from build. 2025-07-30 17:29:17 +01:00
Roger A. Light
3d0e96be85 Merge branch 'master' into develop 2025-07-29 16:07:57 +01:00
Roger A. Light
b8ffdb878e Merge from master 2025-07-25 19:13:51 +01:00
Roger A. Light
44e5015962 Fix lib subscription identifier tests 2025-07-20 08:51:06 +01:00
Roger A. Light
b3e8ec2d8b Lib: Correctly handle publish properties 2025-07-19 21:47:59 +01:00
Roger A. Light
7cfd4667ca Support topic-alias-maximum in client library 2025-07-19 21:45:22 +01:00
Roger A. Light
fa53e4437d Refactor socks code for commonality 2025-07-18 10:49:16 +01:00
Roger A. Light
d61d25d488 Replace mosquitto__cmp_hostname_wildcard with openssl equivalent 2025-07-18 07:48:42 +01:00
Roger A. Light
766fa2c5a9 Merge branch 'fixes' 2025-07-11 22:06:10 +01:00
Roger A. Light
da34d3b6be Fix clients being incorrectly expired.
This would ocurr when they have keepalive == max_keepalive.

Closes #3226
Closes #3286
2025-07-11 17:53:19 +01:00
Roger A. Light
43dda2ae20 Fix some build variants 2025-07-10 16:08:49 +01:00
Roger A. Light
ea66cbbaaa Reduce some valgrind warnings by only allocating _ui_method when needed 2025-07-10 00:53:03 +01:00
Roger A. Light
b99c89cfc9 Fix Websockets PING not being sent on Windows.
Closes #3272. Thanks to andrewthecat
2025-05-07 14:31:30 +01:00
Roger A. Light
04d471193b Fix calloc argument order 2025-05-02 22:38:30 +01:00
Roger A. Light
d4945d2159 Fix linker errors on some architectures using cmake.
Closes #3167. Thanks to acode-x
2025-05-01 16:26:35 +01:00
Roger A. Light
f781abcde9 Fix client library thread exiting on first connection refused error
Closes #3258. Thanks to acode-x
2025-05-01 11:52:46 +01:00
Roger A. Light
cf50cc3a6e Fix client library thread exiting on first connection refused error 2025-05-01 11:51:23 +01:00
Roger A. Light
ed30f437f8 Fix C++ symbols being removed when compiled with link time optimisation.
Closes #3259. Thanks to Joachim Zobel.
2025-05-01 10:59:38 +01:00
Roger A. Light
bdee2ba32e Fix openssl linking on cmake.
Thanks to notpeelz.
2025-04-27 23:28:59 +01:00
Roger A. Light
ec9ea49bba Only link openssl for WITH_TLS. 2025-04-27 23:21:23 +01:00
Roger A. Light
71ee4570de Typedefs for callbacks 2025-04-16 15:42:51 +01:00