Roger Light
cd07f1136b
Bump copyrights.
2021-11-03 22:10:06 +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 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
ec895f2ad3
mosquitto_sub now only needs -t or -U to run
...
This means that `-t` is not required in all situations.
2021-07-05 16:06:22 +01:00
Roger A. Light
de0e275ccb
mosquitto_sub --watch can now be called as -w.
2021-06-25 18:28:25 +01:00
Roger A. Light
e4160b083a
Add --watch to mosquitto_sub.
2021-06-25 12:13:58 +01:00
Roger A. Light
214feb8f6b
Merge branch 'fixes' into develop
2021-05-21 15:42:26 +01:00
Roger Light
be96d21e7b
Fix potential double free.
2021-05-10 21:23:29 +01:00
Roger Light
e1c8f09372
Remove C++ style comments.
2021-04-25 22:26:12 +01:00
Roger Light
ef7662ca8e
Merge branch 'master' into develop
2021-04-24 23:32:48 +01:00
Christian Beier
fe10226cc9
Fix building with Visual Studio 2008
...
This older Microsoft compiler does not support mixing declarations and
code and misses some error defines. This commit enables building with
VS2008 by moving up some variable declarations and defining error
codes to their WinSock counterparts in case they're not defined.
Signed-off-by: Christian Beier <info@christianbeier.net>
2021-04-18 21:23:25 +02: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
efad820706
Add -o option for all clients loading options from a specific file.
2021-04-10 00:39:54 +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 Light
2de8c15bc9
Minor build fixes.
2021-03-21 09:18:43 +00:00
Roger Light
9faf89be8d
Set receive-maximum to not exceed the -C message count.
...
This is for mosquitto_sub and mosquitto_rr, to avoid potentially lost
messages.
Closes #2134 . Thanks to Frantisek Fuka.
2021-03-14 19:24:56 +00:00
Roger A. Light
6c2dca51c3
Clients: Fix config files truncating options after the first space.
...
Closes #2059 . Thanks to Jason White.
2021-02-03 10:11:44 +00:00
Roger A. Light
706a1f3f29
Fix more minor compiler warnings.
2021-01-21 13:33:54 +00:00
Roger A. Light
a4389fc9ce
Fix SPDX identifiers: EDL-1.0 -> BSD-3-Clause.
...
The two licenses are the same.
2021-01-20 11:46:18 +00:00
Roger A. Light
3731535298
Add SPDX license identifiers.
2020-12-01 20:46:56 +00:00
Roger A. Light
730fc34539
Build fix for WITH_TLS=no.
2020-12-01 13:40:03 +00:00
Roger A. Light
29c771cdd4
Add lib and client support for OS CA certs
...
- Add `MOSQ_OPT_TLS_USE_OS_CERTS` option, to instruct the client to load and trust OS provided CA certificates for use with TLS connections.
- All clients now load OS provided CA certificates if used with `-L
mqtts://...`, or if port is set to 8883 and no other CA certificates are
used. Closes #1824 .
- Add the `--tls-use-os-certs` option to all clients.
Closes #1824 . Thanks to Jens Reimann.
2020-12-01 11:51:13 +00:00
Roger A. Light
b169dc0b1e
mosquitto_sub will quit with an error on Windows if %U is used.
...
Seconds since the Unix epoch is not a parameter that can be obtained
with strftime on Windows.
Closes #1908 . Thanks to Danil intl.
2020-11-26 09:10:04 +00:00
Roger A. Light
584cf51ba7
Update to EPL-2.0
2020-11-25 17:34:21 +00:00
Roger A. Light
8e7e4a9d9a
Clients: Give warning if keepalive too low.
2020-11-03 09:51:28 +00:00
Roger A. Light
4f61f6c161
Fix conversion errors.
2020-10-17 01:23:08 +01:00
Roger A. Light
c90e49af1b
Merge remote-tracking branch 'origin/fixes' into develop
2020-09-24 17:03:14 +01:00
Roger A. Light
e2123b2561
Add --version for all clients.
2020-09-10 15:49:08 +01:00
Roger A. Light
bab8cc2a6b
mosquitto_sub now supports extra format specifiers.
...
These are for field width and precision for some parameters.
2020-08-28 22:23:22 +01:00
Roger A. Light
40bad1a999
Fix conversion warnings in client code
...
Issue #1653 .
2020-04-16 23:26:14 +01:00
Roger A. Light
0da723c1ec
Add --random-filter to mosquitto_sub.
2020-03-03 14:12:30 +00:00
Roger A. Light
d96543c0b8
Merge branch 'fixes' into develop
2020-03-03 12:54:57 +00:00
Roger A. Light
b0a065f790
Update changelog. Release page. Bump copyright.
2020-02-27 23:26:58 +00:00
Roger A. Light
17e20de9e7
Fix session-expiry-interval for v5 clients using -c.
...
Default behaviour for v5 clients using `-c` is now to use infinite length
sessions, as with v3 clients.
Closes #1546 . Thanks to Kiran Pradeep.
2020-02-06 16:14:29 +00:00
Roger A. Light
019d4214b8
Fix session-expiry-interval for v5 clients using -c.
...
Default behaviour for v5 clients using `-c` is now to use infinite length
sessions, as with v3 clients.
Closes #1546 . Thanks to Kiran Pradeep.
2020-02-06 16:12:56 +00:00
Roger A. Light
3671a6dfdb
Add -x argument to all clients.
...
This allows the session-expiry-interval property to be easily set for
MQTT v5 clients.
2020-01-30 11:19:09 +00:00
Roger A. Light
d60e86d2a3
Add TCP_NODELAY support to lib and clients.
...
Closes #1526 . Thanks to Felix Moessbauer.
2019-12-18 17:04:43 +00:00
Roger Light
1c6666b63a
Add user-property output support to sub/rr.
2019-10-15 15:54:46 +01:00
Roger A. Light
59c0bfe6e1
Add support for v5 property printing to mosquitto_sub/rr in non-JSON mode.
2019-10-15 15:23:29 +01:00
Roger A. Light
9e4226622f
Add --pretty option to mosquitto_sub/rr
...
If active, this produces formatted JSON output rather than the normal
minimised output.
2019-10-15 14:44:25 +01:00
Roger A. Light
499e2f2e98
Add support for unix sockets to broker, lib, and clients.
2019-10-08 20:55:31 +01:00
YangHau
b2aed5cb7e
feat: Remove unecessary if statement
...
free() would take no action if the arguement is a NULL pointer.
Therefore, the if statement is totally unnecessary.
See ISO-IEC 9899
Signed-off-by: YangHau <vulxj0j8j8@gmail.com>
2019-08-01 19:28:39 +08:00
Roger A. Light
af7760f1b6
Fix build for WITH_SOCKS=no.
2019-06-13 16:23:55 +01:00
Roger A. Light
31f448f35a
Fix MQTT v5 clients not being able to specify a password without a username.
...
Thanks to Erik Moqvist.
Closes #1274 .
2019-06-06 23:01:04 +01:00
Roger A. Light
4d54a51c62
Stop some error messages being printed even when --quiet was used.
...
Thanks to Rob de Jonge.
Closes #1284 .
2019-06-06 22:58:02 +01:00
Roger A. Light
b4dfeb3767
Fix MQTT v5 clients not being able to specify a password without a username.
...
Thanks to Erik Moqvist.
Closes #1274 .
2019-05-21 23:56:22 +01:00
Roger A. Light
7a33a129d6
Stop some error messages being printed even when --quiet was used.
...
Thanks to Rob de Jonge.
Closes #1284 .
2019-05-21 11:23:00 +01:00
Roger A. Light
a47da31679
Update changelog, improve warning message from last commit.
2019-05-10 07:25:49 +01:00