Commit Graph

320 Commits

Author SHA1 Message Date
Roger A. Light
a791532c12 Simplify $SYS metric generation. 2023-03-10 23:48:47 +00:00
Roger A. Light
385ddd7d86 Limit bridge restart base and cap to prevent integer overflow.
Non-critical.

Closes oss-fuzz #56302.
2023-03-03 22:11:54 +00:00
Roger A. Light
5fbe8e5be2 Add --tls-keylog for clients. 2023-03-03 15:31:46 +00:00
Roger A. Light
7f0cd48921 Formatting plus whitespace tidy 2023-03-03 15:31:46 +00:00
Roger A. Light
1a8e416b17 Add -q option to mosquitto 2023-01-27 17:21:36 +00:00
Roger A. Light
9260cf25f8 Fix parsing of IPv6 addresses in socks proxy urls. 2023-01-16 10:31:13 +00:00
Roger A. Light
00faec3ccd Doc update 2022-12-13 17:17:51 +00:00
Roger A. Light
3d5309a622 Complicated config test. 2022-11-30 15:35:19 +00:00
Roger A. Light
e452f8a4c5 Fix formatting 2022-11-30 15:35:19 +00:00
Roger A. Light
d64331603c Don't use TLS v1.1 by default. 2022-11-30 14:36:32 +00:00
Roger A. Light
4612901128 Typos 2022-11-30 09:52:28 +00:00
Roger A. Light
0dd85cfa23 Fix option name 2022-11-27 22:37:35 +00:00
Roger A. Light
3523fc597c Add extra help to mosquitto.conf man page. 2022-11-26 22:27:40 +00:00
Roger A. Light
826af31be7 Update changelog and man page. 2022-11-03 17:02:22 +00:00
Roger A. Light
fd68bf00c7 Merge branch 'master' into develop 2022-08-17 16:18:24 +01:00
Roger A. Light
e5cb3d0d58 Using -x now sets the clients to use MQTT v5.0. 2022-08-12 15:03:00 +01:00
Roger A. Light
c4664f08ac Clarify use_username_as_clientid is not global 2022-08-11 11:51:53 +01:00
Roger A. Light
29f49bf6ab Publish global out_packet values to $SYS 2022-06-04 22:40:48 +01:00
Roger A. Light
29c6480c47 Improve documentation of persistent_client_expiration option.
Closes #2404. Thanks to Rainer Plischke.
2022-05-19 17:04:20 +01:00
Roger A. Light
fe32e2506b Add more mosquitto_passwd examples 2022-05-19 15:28:37 +01:00
JsBergbau
651331ff7d Added queue_qos0_messages documentation for bridging
See https://github.com/eclipse/mosquitto/pull/2500
2022-05-11 15:51:59 +01:00
Roger A. Light
a84b5abb69 Update changelog and sort documentation order. 2022-04-29 22:02:41 +01:00
Michał Łyszczek
91bca8899c mosquitto_sub: add support to print floats
This patch adds support for two new format specifiers (%f and %d)
to print float and double data.

Generally it's not save to directly take native binary data of one machine and
print it on another one (since mosquitto is multiarch). But in case of floats
it's save to print representation of it, if __STDC_IEC_559__ is defined.

In C99 Annex F, standard we can read:
> This annex specifies C language support for the
> IEC 60559 floating-point standard.
> (...)
> An implementation that defines __STDC_IEC_559__
> shall conform to the specifications in this annex

All float printing code is behind __STDC_IEC_559__, so if that is not
defined, floating print will be disabled and error returned to user.

Documentation also describes restrictions about printing floats.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-04-24 17:33:37 +02:00
Pierre Hallot
8504f6b70b CMake: Use PROJECT_SOURCE_DIR to improve using mosquitto as subdirectory
When mosquitto is included as subdirectory, `CMAKE_SOURCE_DIR` does not refer to the mosquitto top level CMake file, but to the whole project top level CMake.
Use `PROJECT_SOURCE_DIR` instead to refer to the right CMake in both contextes.

Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
2022-04-05 16:14:48 +02:00
Roger A. Light
6ccdda7261 Add bridge_tls_use_os_certs option.
This allows bridges to be easily configured to trust default CA
certificates.

Closes #2473. Thanks to Dustin Utecht.
2022-03-11 23:10:20 +00:00
Roger A. Light
1972ab9a59 Man page fix 2022-02-28 21:58:42 +00:00
Roger A. Light
a85d9fb3e9 Merge branch 'improve_backoff' of https://github.com/abiliojr/mosquitto into abiliojr-improve_backoff 2022-02-24 17:02:55 +00:00
Norbert Heusser
e7e8b6e832 * Added list of connections to dynsec/getClient response
* Added new helper function mosquitto_apply_on_all_clients to broker
* Refactoring in dynamic-security plugin

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-02-21 16:27:26 +00:00
Roger A. Light
5a3b42d4a4 Use path vars in Makefiles. 2022-02-09 14:44:09 +00:00
Abilio Marques
03ad07f121 bridge: wait for stable connection before resetting backoff
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2022-02-02 07:21:03 +01:00
Roger A. Light
ab67dbcacd More client tests, and an output format fix. 2022-01-15 23:41:12 +00:00
Roger A. Light
aa99ce90ac Fix typo. 2021-11-16 16:16:52 +00:00
Roger Light
ff69dc8db2 Add bridge_receive_maximum option for MQTT v5.0 bridges. 2021-11-14 22:55:14 +00:00
Roger Light
99eddeb109 Add bridge_session_expiry_interval option for MQTT v5.0 bridges. 2021-11-14 22:01:10 +00:00
Roger Light
538154bd9c The --insecure option now disables all server certificate verification. 2021-10-29 22:53:55 +01:00
Roger A. Light
8ac11929cc Merge branch 'master' into develop 2021-10-27 17:19:33 +01:00
Roger Light
1cc8ebb782 Add support for sending the SIGRTMIN signal to trigger log rotation.
Closes #2337. Thanks to Evgeny S.
2021-10-13 00:05:52 +01:00
Roger A. Light
799cdead15 Experimental custom websockets support. 2021-10-06 15:32:45 +01:00
Roger A. Light
a1a190b482 Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
Roger A. Light
7a86b1078a Fix security init order. 2021-09-30 17:09:12 +01:00
Roger A. Light
4f24ffef2f Add disable_client_cert_date_checks option. 2021-09-21 12:16:42 +01:00
Roger A. Light
ba936a869d Add accept_protocol_versions option. 2021-09-21 11:07:54 +01:00
Roger A. Light
f552ec48b1 Add global_max_connections option. 2021-09-17 16:06:02 +01:00
Roger A. Light
02685d49b6 Add global_max_clients option.
This allows limiting client sessions globally on the broker.
2021-09-17 16:01:37 +01:00
Roger A. Light
64e3c78306 Add enable_control_api option. 2021-09-13 10:31:25 +01:00
Roger A. Light
d942ed7eec Fix max_keepalive option not being able to be set to 0. 2021-09-09 12:19:13 +01:00
Roger A. Light
aa29b45e70 Merge branch 'master' into develop 2021-09-07 19:17:11 +01:00
Roger A. Light
e43d36020f Update plugin configuration documentation.
Closes #2286. Thanks to Karl Palsson.
2021-08-31 10:57:48 +01:00
Roger A. Light
756b3fcb08 Document TLS certificate behaviour when using -p 8883. 2021-08-24 23:15:06 +01:00
Roger Light
035291c595 Signal+reload documentation improvement. 2021-08-21 00:08:20 +01:00