1074 Commits

Author SHA1 Message Date
Roger A. Light
0a64c1de23 OpenBSD build fixes
Closes #3474. Thanks to Stuart Henderson
2026-02-06 14:50:20 +00:00
Roger A. Light
0d89a649c2 More warning fixes 2026-01-23 09:26:09 +00:00
Roger A. Light
7de6cb42ef Compiler warning fixes 2026-01-23 08:44:34 +00:00
Roger A. Light
758bf6a127 Minor compiler warning fixes 2026-01-21 16:58:42 +00:00
Roger A. Light
3093333217 Remove ENGINE_cleanup as it does nothing any more.
Closes #3450. Thanks to Paolo Patruno
2026-01-20 10:17:06 +00:00
Roger A. Light
79a13f6e10 Fix --insecure and bridge_insecure
Closes #3449. Thanks to Christoph Krey
2026-01-19 11:45:55 +00:00
Roger A. Light
d346179137 Formatting 2026-01-18 22:45:10 +00:00
Roger A. Light
81a9385877 Merge branch 'fixes' into develop 2026-01-15 00:49:53 +00:00
Roger A. Light
3ab1bae406 Merge branch 'fixes' 2026-01-14 19:10:52 +00:00
Roger A. Light
ae7cf71dcf Fix errno setting on Windows
Closes #3424
2026-01-07 15:04:06 +00:00
Roger A. Light
413d84b91d Make condition more explicit for what is actually required
Closes oss-fuzz #445970862
2025-12-09 13:25:34 +00:00
Rich Mattes
ab4ac42b90 Fix libdir location in pkgconfig files.
The pkgconfig files currently hardcode the library directory as
${prefix}/lib, but the library installation directory in config.mk is
set as lib${LIB_SUFFIX}.  This causes a mismatch between the library
installation directory and the pkgconfig file on redhat-based 64-bit
systems.

This commit remedies the issue for both the Makefile and CMake build by
modifying the pkgconfig files to use CMAKE_INSTALL_LIBDIR instead of
"lib".  In the CMake system, this directly reflects the installation
path.  The Makefiles were modified to replace CMAKE_INSTALL_LIBDIR with
lib${LIB_SUFFIX}, matching the libdir definition in config.mk and
following the pattern used in defining the prefix.

Signed-off-by: Rich Mattes <richmattes@gmail.com>
2025-12-08 20:57:17 +00:00
Rich Mattes
c34be255d3 Fix libdir location in pkgconfig files.
The pkgconfig files currently hardcode the library directory as
${prefix}/lib, but the library installation directory in config.mk is
set as lib${LIB_SUFFIX}.  This causes a mismatch between the library
installation directory and the pkgconfig file on redhat-based 64-bit
systems.

This commit remedies the issue for both the Makefile and CMake build by
modifying the pkgconfig files to use CMAKE_INSTALL_LIBDIR instead of
"lib".  In the CMake system, this directly reflects the installation
path.  The Makefiles were modified to replace CMAKE_INSTALL_LIBDIR with
lib${LIB_SUFFIX}, matching the libdir definition in config.mk and
following the pattern used in defining the prefix.

Signed-off-by: Rich Mattes <richmattes@gmail.com>
2025-12-08 20:51:49 +00:00
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
6fb01c7337 Add broker logging for protocol errors 2025-11-26 14:34:10 +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
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
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
a06d93610e 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:04:50 +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
d27632a206 Only cleanup TLS if it is initialised.
Closes #2975
2025-08-09 22:44:53 +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
Ben Marsh
af68d99c98 Fix CMake builds with WITH_TLS=OFF
Recent CMake changes caused CMake builds with the WITH_TLS option set to OFF to fail. The OpenSSL package is only found (find_package()) if WITH_TLS is ON, but linking to OpenSSL for the broker and library is not guarded by WITH_TLS. The build therefore fails.

Guard linking to OpenSSL, only linking if WITH_TLS is set.
2025-07-30 17:30:02 +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