Commit graph

2715 commits

Author SHA1 Message Date
Roger Light
9c9ca33d63 Fix two potential leaks. 2021-05-10 21:56:44 +01:00
Roger Light
be96d21e7b Fix potential double free. 2021-05-10 21:23:29 +01:00
Roger Light
0a90e62f93 CMake tidy. 2021-05-10 00:39:46 +01:00
Roger Light
160950dc73 Fix syntax error. 2021-05-09 22:12:04 +01:00
Roger Light
931c590a37
Merge pull request #2156 from abiliojr/improve_tls
add cipher settings for bridge, and support for TLS 1.3 ciphers
2021-05-07 01:01:46 +01:00
Roger Light
b950f53b44
Merge pull request #2157 from abiliojr/fix_stranded_bridge_conf_reload
bridge: enable reload of bridge_bind_address
2021-05-06 23:53:39 +01:00
Roger Light
8e8a0080a1 Merge branch 'schmidtw-bridge-work' into develop 2021-05-06 23:51:47 +01:00
Roger Light
0b702c62ab Merge branch 'bridge-work' of git://github.com/schmidtw/mosquitto into schmidtw-bridge-work 2021-05-06 23:42:25 +01:00
Roger Light
a5eb2f25eb Add --tls-keylog argument. 2021-05-06 23:37:04 +01:00
Roger Light
0eb7391e71 Fix tests and db_dump compilation. 2021-05-06 00:06:58 +01:00
Roger Light
245b138aa5 Simplify broker context sock init. 2021-05-05 23:16:33 +01:00
Roger Light
e82cee161f Simplify sys_tree calls further. 2021-05-03 23:10:22 +01:00
Roger Light
4d644414ac Further isolate sys tree code. 2021-05-03 21:38:51 +01:00
Roger A. Light
b7b3a42e75 Strict build fixes. 2021-05-02 23:51:56 +01:00
Roger A. Light
8a03b5ad5c Function for checking if a context is connected. 2021-05-02 23:19:54 +01:00
Roger Light
ef7662ca8e Merge branch 'master' into develop 2021-04-24 23:32:48 +01:00
Roger Light
46de5ffae3 Report on what compile time options are available.
Closes #2193. Thanks to Lucy2003.
2021-04-24 22:52:55 +01:00
Roger Light
f2faea04c2 Move listener code to own file. 2021-04-24 22:43:44 +01:00
Roger A. Light
1677bb85f4 Fix test. 2021-04-15 11:26:39 +01:00
Roger A. Light
8dbfdc0495 Add --no-tls option for all clients.
This disables all TLS options for that instance. This is useful for
negating TLS options provided in a config file, or to disable the
automatic use of TLS when using port 8883.

Closes #2180. Thanks to Elliott Balsley.
2021-04-15 09:52:34 +01:00
Roger Light
d5ecd9f5aa Update CVE information. 2021-04-10 08:28:41 +01:00
Roger Light
efad820706 Add -o option for all clients loading options from a specific file. 2021-04-10 00:39:54 +01:00
Roger A. Light
b4c1f98d62 Fix missing header. 2021-04-07 10:02:51 +01:00
Roger A. Light
34522913ea Update Windows readme. 2021-04-06 14:41:45 +01:00
Roger A. Light
1c79920d78 Update docker. 2021-04-03 13:50:40 +01:00
Roger A. Light
1a6fdfb695 Merge branch 'fixes' 2021-04-03 12:01:43 +01:00
Roger A. Light
e7aa0fed2f Bump version, update web page. 2021-04-03 12:00:33 +01:00
Roger A. Light
54df92cdc9 Add references to dynsec plugin in mosquitto.conf(5)
Closes #2089. Thanks to YerayAlonso.
2021-04-03 11:43:33 +01:00
Roger A. Light
983dc14f2c Provide help for users trying to bind to privileged ports.
Closes #2098.
2021-04-03 11:33:57 +01:00
Roger A. Light
eead0d2943 Fix build on Solaris non-sparc.
Closes #2136. Thanks to chuckunix.
2021-04-03 11:15:13 +01:00
Roger A. Light
6a4a547892 Fix segfault on client sending malformed CONNACk.
CVE-xxxx-xxxx: If an authenticated client connected with MQTT v5 sent a
malformed CONNACK message to the broker a NULL pointer dereference occurred,
most likely resulting in a segfault. This will be updated with the CVE
number when it is assigned.
Affects versions 2.0.0 to 2.0.9 inclusive.

Closes #2163. Thanks to Bryan Pearson.
2021-04-03 11:14:27 +01:00
Roger A. Light
cde735a480 Add issue template. 2021-04-03 11:06:15 +01:00
Roger Light
6ebbb4d654 Fix possible socket leak.
This would occur if a client was using `mosquitto_loop_start()`, then if
the connection failed due to the remote server being inaccessible they
called `mosquitto_loop_stop(, true)` and recreated the mosquitto object.

See: https://www.eclipse.org/forums/index.php?t=rview&goto=1839865#msg_1839865
2021-04-02 11:03:01 +01:00
Roger Light
117e59b7cf Fix CMake cross compile builds not finding opensslconf.h.
Closes #2160. Thanks to Ozaq.
2021-04-01 21:53:13 +01:00
Roger A. Light
4ee03f21e3 Guard against missing UNUSED. 2021-03-29 17:07:40 +01:00
Abilio Marques
ec73636884 mention ciphers settings in documentation, minor sync of missing config settings
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2021-03-29 06:56:38 +02:00
Abilio Marques
c68be29992 add cipher settings for bridges
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2021-03-29 06:55:18 +02:00
Abilio Marques
c637a192a3 add support for tlsv1.3 ciphers
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2021-03-29 06:54:46 +02:00
Abilio Marques
00d72e4d94 bridge: enable reload of bridge_bind_address
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2021-03-26 19:11:28 +01:00
Roger A. Light
7d214a445d Fix TLS-PSK mode not working with port 8883.
Closes #2152. Thanks to jetpax.
2021-03-26 11:06:57 +00:00
Roger A. Light
3ac2c3ee09 Improve mosquitto_ctrl documentation. 2021-03-26 10:42:18 +00:00
Roger A. Light
20e154c1dd Add missing config file. 2021-03-25 20:41:50 +00:00
Roger A. Light
7842323c0d Test fixes. 2021-03-25 20:40:55 +00:00
Roger A. Light
27ca78ba60 Bring generic Dockerfile in line with 2.0-openssl. 2021-03-25 16:20:22 +00:00
Roger A. Light
e32bd8fb92 Add info on config-less docker to the generic image readme. 2021-03-25 15:56:27 +00:00
Roger A. Light
3cc6630d64 alias_mosq.c must be part of the cmake lib build. 2021-03-25 15:51:35 +00:00
Roger A. Light
c17c6a9028 Move example plugins to their own directory. 2021-03-25 15:51:14 +00:00
Roger Light
dcb9ac93c7
Merge pull request #2138 from dersimn/pr/examples
add some plugin examples
2021-03-25 15:31:36 +00:00
Roger A. Light
71366fd569 Add mosquitto_ctrl options 2021-03-23 21:49:47 +00:00
Roger A. Light
de9780343b Add support for MQTT v5 broker->client topic aliases.
This is on a first-come-first-served basis for now.
Also broker to bridge topic aliases.
2021-03-22 16:56:10 +00:00