Commit graph

1044 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
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.
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Mosquitto - CMake / build (push) Has been cancelled
Mosquitto - Make / build (push) Has been cancelled
Windows x86 build / mosquitto (push) Has been cancelled
Windows build / mosquitto (push) Has been cancelled
Closes #3272. Thanks to andrewthecat
2025-05-07 14:31:30 +01:00
Roger A. Light
04d471193b Fix calloc argument order
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Mosquitto - CMake / build (push) Has been cancelled
Mosquitto - Make / build (push) Has been cancelled
Windows x86 build / mosquitto (push) Has been cancelled
Windows build / mosquitto (push) Has been cancelled
2025-05-02 22:38:30 +01:00
Roger A. Light
d4945d2159 Fix linker errors on some architectures using cmake.
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Mosquitto - CMake / build (push) Has been cancelled
Mosquitto - Make / build (push) Has been cancelled
Windows x86 build / mosquitto (push) Has been cancelled
Windows build / mosquitto (push) Has been cancelled
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.
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Mosquitto - CMake / build (push) Has been cancelled
Mosquitto - Make / build (push) Has been cancelled
Windows x86 build / mosquitto (push) Has been cancelled
Windows build / mosquitto (push) Has been cancelled
Thanks to notpeelz.
2025-04-27 23:28:59 +01:00
Roger A. Light
ec9ea49bba Only link openssl for WITH_TLS.
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-27 23:21:23 +01:00
Roger A. Light
71ee4570de Typedefs for callbacks
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-16 15:42:51 +01:00
Roger A. Light
2ff2029c42 mosquitto_ctrl interactive shell mode 2025-04-16 15:42:51 +01:00
Roger A. Light
b4e97b3561 Start of mocking support
libmosquitto public mocks
pthread and editline minimal mocks
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
c6c6850d5c Whitespace tidy
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Mosquitto - CMake / build (push) Has been cancelled
Mosquitto - Make / build (push) Has been cancelled
Windows x86 build / mosquitto (push) Has been cancelled
Windows build / mosquitto (push) Has been cancelled
2025-04-06 22:25:02 +01:00
Roger A. Light
bd52ede4de Remove support for TLS v1.1 2025-04-01 11:36:39 +01:00
Roger A. Light
c75f23839b Fix packet read single for an EAGAIN case 2025-03-26 19:35:30 +00:00
Roger A. Light
2acb9d5c8d Bridge: Fix idle_timeout never occurring for lazy bridges. 2025-03-19 11:56:43 +00:00
Roger A. Light
664ca4eb16 Further fix for CVE-2023-28366. 2025-03-06 16:23:49 +00:00
Roger A. Light
4304ac0af0 Backport keepalive check from develop branch.
Closes #3138
2025-02-27 13:59:36 +00:00
Roger A. Light
cd0987a661 Fix potential deadlock in mosquitto_sub if -W is used.
Closes #3175. Thanks to Audric Schiltknecht
2025-02-27 00:02:26 +00:00
Arvin
a853be5008 fix leakage of mosq->tls_engine and User SSL Context
Signed-off-by: Arvin <icemanpeng@foxmail.com>
2025-02-26 12:53:40 +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