Commit Graph

3513 Commits (d15c6bd7ef3281ba923fc42624eff37ae56520c5)
 

Author SHA1 Message Date
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
Roger A. Light fa31b6f41d Fix bridge queued messages not being persisted.
This happens when local_cleansession is set to false and cleansession is
set to true.

Closes #2604. Thank to Frank Dekervel.
3 years ago
Roger A. Light 1ed0c0436a Run lock only once per week 3 years ago
Roger A. Light e5cb3d0d58 Using `-x` now sets the clients to use MQTT v5.0. 3 years ago
Roger A. Light 62368c5677 Changelog additions 3 years ago
Roger A. Light 5d18962486 Improve custom SSL_CTX tests.
Issue #2463.
3 years ago
Roger A. Light 80c7726d5c Fix confusing error message when dynamic security config file was a directory.
Closes #2520. Thanks to sezanzeb
3 years ago
Roger A. Light 775bd2effd Fix confusing "out of memory" error.
This happens when a client is kicked in the dynamic security plugin.

Closes #2525. Thanks to sezanzeb.
3 years ago
Roger A. Light 531d58e62a Add X-Forwarded-For support for builtin websockets 3 years ago
Roger A. Light 268a2bae47 Update lock-threads workflow 3 years ago
Roger A. Light ea7bf9819b Update local docker file 3 years ago
Roger A. Light 95e2c4d543 Add support for PUID/PGID environment variables
These arefor setting the user/group to drop privileges to.

Closes #2441. Thanks to matthewparkes.
3 years ago
Roger A. Light a2f91babdf Fix incorrect format specifier 3 years ago
Roger A. Light e97d04cbb2 `drop_privileges` should be file local scope. 3 years ago
Roger A. Light c4664f08ac Clarify use_username_as_clientid is not global 3 years ago
Roger A. Light acabf3826b Merge branch 'buschulte-cmake-libmosq-public-include' into develop 3 years ago
Roger A. Light bf61615075 Merge branch 'cmake-libmosq-public-include' of https://github.com/buschulte/mosquitto into buschulte-cmake-libmosq-public-include 3 years ago
Roger A. Light 02b92b97ef Fix use of MOSQ_OPT_SSL_CTX when used with MOSQ_OPT_SSL_CTX_DEFAULTS
Closes #2463. Thanks to Tim Nordell.
3 years ago
Roger A. Light f9fa19ce6a - Fix `-o` not working in `mosquitto_ctrl`, and typo in related documentation.
Closes #2471. Thanks to Vitaljok and rillbert
3 years ago
Roger A. Light 6468bb4f9b Fix documentation omission around mosquitto_reinitialise.
Closes #2489. Thanks to rroguski
3 years ago
Roger A. Light 351911bd8f Fix incorrect return code being sent in DISCONNECT.
This is for when a client session is taken over.

Closes #2607. Thanks to der-b
3 years ago
Roger Light 7c295286ac
Merge pull request #2608 from NorbertHeusser/split-client-tests
Split client python tests into test with/without TLS/PSK
3 years ago
Roger A. Light 08610f7c99 Further fix for #2546. 3 years ago
Roger A. Light e979a46c04 Backport SSL connect fixes.
Closes #2594.
Closes #2595.
3 years ago
Norbert Heusser f2c59e4048 Split client python tests into test with/without TLS/PSK
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Roger A. Light e5e41c17c2 The persistence interface shouldn't delay retained messages.
Let plugins do that if they require it.
3 years ago
Kai Buschulte ddd16d54be Make required includes public for libmosquitto
for simplified usage of the CMake target

Issue number: #2452

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 8b67883548 Remove old compatibility header support
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light a913de2d28 Fix some PUBLISH messages not being counted in $SYS stats.
Closes #2448. Thanks to Antoine.
3 years ago
Roger A. Light ba6bbd5959 Add documentation of struct mosquitto_message to header.
Closes #2561.
3 years ago