Commit Graph

3392 Commits (bdf8493e8176172cb86d7c5d212664c745ec53ca)
 

Author SHA1 Message Date
Roger A. Light bdf8493e81 sqlite: base_msg can never have these properties 3 years ago
Roger Light 1f559f1a71
Merge pull request #2624 from buschulte/fix-some-compiler-warinngs
Add missing callback set calls for MQTTv5 in C++ lib wrapper
3 years ago
Roger A. Light 16feb14a57 Persistence interface updates and sqlite plugin fixes
The MOSQ_EVT_PERSIST_CLIENT_MSG_CLEAR event has been removed, due to
never being called. It is the responsibility of the plugin to remove
client subscriptions and client messages when the client is removed.

Lots of persist test improvements and additions - mostly checking item
counts.
3 years ago
Roger A. Light 428d39b22b Ensure restored base msgs are marked as stored. 3 years ago
Roger A. Light d4960d0ead sqlite: Save/restore binary properties. 3 years ago
Roger A. Light dd30dc8bd1 Fix typo 3 years ago
Roger A. Light 40636fdce0 Simplify sub client json printing. 3 years ago
Roger A. Light ef078b31b5 Make persistence tests easier to use for other plugins. 3 years ago
Roger A. Light 86b314c624 Remove unused defs 3 years ago
Roger A. Light afc575aa1c Simplify function calls. 3 years ago
Roger A. Light b11b0b206c Function naming consistency 3 years ago
Roger A. Light 3102c6ac64 Remove unused member 3 years ago
Roger A. Light 33499efea1 Fix Coverity 1491741 and 1491742. 3 years ago
Roger A. Light 52599ee78b Fix Coverity 1486951. 3 years ago
Kai Buschulte ec8566ba0d Fix conversion warnings
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte c646172c05 set mqtt v5 callbacks in C++ wrapper of lib
This caused "unused function" warnings

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light 1d230bd255 dynsec: Fix listClients/getClient crashing if an anon user present
This only affects the unreleased `develop` branch.
3 years ago
Roger A. Light 4997b40259 Report persistence stats when starting. 3 years ago
Roger A. Light 7ec8417e54 Client tests: --version dummy, and float printing for sub. 3 years ago
Roger A. Light 7370a7d028 rr client does support < v5.0 3 years ago
Roger A. Light 3b56a89b0a Improved client tests 3 years ago
Roger A. Light ca618c6f96 Fix db_dump coverage build 3 years ago
Roger A. Light 1cfa0247cb Update apt cache before installing 3 years ago
Roger A. Light 0e562d09df First coverage workflow 3 years ago
Roger A. Light de9db2ce8a Tidy workflow, apply to fixes as well 3 years ago
Roger A. Light 2f8a83269e Remove unused workflow. 3 years ago
Roger A. Light 68cfec3cdd Fix local bridge session expiry interval. 3 years ago
Roger A. Light 3c4d2d0772 Fix persisted clients being restored without a session expiry time. 3 years ago
Roger A. Light 9ab0bc3cbe Build auth_plugin_v5_handle_tick plugin for cmake tests 3 years ago
Roger A. Light f5a09992be Fix cpp include build 3 years ago
Roger A. Light fd68bf00c7 Merge branch 'master' into develop 3 years ago
Roger A. Light ba13edc6a4 dynsec: Forbid deleting the anon group. 3 years ago
Roger A. Light a8448a9c7b Revert 1.x docker builds to alpine 3.14 due to openssl build errors 3 years ago
Roger A. Light e9b2fddaa5 Update security page 3 years ago
Roger A. Light 7898f12825 Update docker 3 years ago
Roger A. Light b0277869d9 Update changelog for last minute fix 3 years ago
Roger A. Light 004b45fa40 Merge branch 'hardillb-x-forwarded-for-lws' 3 years ago
Roger A. Light 4a6570567a Merge branch 'x-forwarded-for-lws' of https://github.com/hardillb/mosquitto into hardillb-x-forwarded-for-lws 3 years ago
Ben Hardill 0eec37af99
Add support for X-Forwarded-For LWS
I know you've added this for the next release, but here is a fix
for LWS. But just incase there are any more 2.0.x releases.

It does leave the incoming port as 0 but as this is pretty meaningless
for a proxied connection I think it's probably ok.

Signed-off-by: Ben Hardill <hardillb@gmail.com>
3 years ago
Roger A. Light 9d9469cbec Merge branch 'fixes' 3 years ago
Roger A. Light 966601f6b6 Bump version, new web post 3 years ago
Roger A. Light 4d1b587e29 dynsec: Forbid deleting the anon group. 3 years ago
Roger A. Light 7917553eb2 Fix expired messages causing queued messages not to be delivered.
Closes #2609. Thanks to JSchy65.
3 years ago
Roger A. Light cd88906132 Clearer function name 3 years ago
Roger Light 893a64102b
Merge pull request #2615 from buschulte/cmake-lto-support
Enable CMake LTO/IPO support (WITH_LTO option)
3 years ago
Kai Buschulte 47d6530ddf Enable CMake LTO/IPO support (WITH_LTO option)
Makefiles already support an option to enable link time optimizations.
This is now also possible in CMake by using the WITH_LTO option.
It's turned on by default if the compiler supports these flags.
Note: LTO is part of the inter-procedural optimization (IPO).

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light df317ff71f Dynamic security: Fix the plugin being able to be loaded twice.
Currently only a single plugin can interact with a unique $CONTROL
topic. Using multiple instances of the plugin would produce duplicate
entries in the config file.

Closes #2601.
Closes #2470.
3 years ago
Roger A. Light 436f0b9348 dynsec: Fix modifyClient and modifyGroup commands
They will now not modify the client/group if a new group/client being
added is not valid, or on other failures.

Closes #2598. Thanks to Sebastian Szczepański.
3 years ago
Roger A. Light b22df5140e Clear errno before check. 3 years ago
Roger A. Light 49ebb58569 Fix failure to close thread in some situations.
Closes #2545. Thanks to p-luke.
3 years ago