Roger A. Light
28590fa383
Remove unused headers
2023-11-15 22:45:38 +00:00
Roger A. Light
7ae22c356b
Fix mosquitto_rr not honouring -R
.
...
Closes #2893 . Thanks to jwinder-ca
2023-09-13 09:02:55 +01:00
Bart Desplanques
105e30ff5b
Fix engine support.
...
Do not try to open keyfile when keyform is "engine": this is not necessarily a real file.
Dynamic engines require init with OPENSSL_INIT_ENGINE_DYNAMIC before they can be loaded.
Signed-off-by: Bart Desplanques <bart.desplanques@gmail.com>
2023-06-02 19:11:50 +02:00
Roger A. Light
0fb4e2bf6a
Fix incorrect topic-alias property value in mosquitto_sub json output.
2022-12-22 13:21:42 +00:00
Tobias Assarsson
a9a5ac2283
Don't reuse topic alias after reconnect.
2022-04-20 10:04:58 +02:00
Roger A. Light
20d2935d81
Fix date format in mosquitto_sub output.
...
Closes #2353 . Thanks to Norman Rasmussen.
2021-10-27 16:22:26 +01:00
Roger A. Light
a1a190b482
Pointless whitespace tidy.
2021-10-05 15:20:37 +01:00
Roger A. Light
6028d0e33e
mosquitto_sub and mosquitto_rr now open stdout in binary mode on Windows
...
This is so binary payloads are not modified when printing.
Thanks to Steve Mullock.
2021-06-09 21:16:57 +01:00
Roger Light
07399c2f3c
Fix mosquitto_pub -l
quitting if broker unavailable.
...
This could occur when a message publication is attempted when the broker
is temporarily unavailable.
Closes #2187 . Thanks to JsBergbau.
2021-05-08 23:07:02 +01:00
Roger A. Light
c8cd3590f1
Check for NULL.
2021-05-06 21:05:10 +01:00
Roger Light
e1c8f09372
Remove C++ style comments.
2021-04-25 22:26:12 +01:00
Roger Light
5434931dbc
Merge branch 'fixes' of git://github.com/bk138/mosquitto into bk138-fixes
2021-04-25 22:10:30 +01:00
Roger A. Light
613489f735
Fix typo.
2021-04-20 21:09:08 +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
ec54bce037
Fix mosquitto_sub pipe close detection.
...
If sending mosquitto_sub output to a pipe, mosquitto_sub will now detect
that the pipe has closed and disconnect.
Closes #2164 . Thanks to Frantisek Fuka.
2021-04-06 23:01:48 +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
a5d9986cbd
More compiler warning fixes.
2021-03-21 22:50:48 +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
24920c9a08
Fix possible loss of data in mosquitto_pub -l
when sending multiple long lines.
...
Closes #2078 . Thanks to Ysincit.
2021-02-06 23:05:52 +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
370cec5edd
Fixes for lots of minor build warnings highlighted by Visual Studio.
2021-01-09 21:06:08 +00:00
Roger A. Light
de141540fb
Fix mosquitto_sub being unable to terminate with Ctrl-C.
...
This occured if a successful connection was not made.
Closes #1957 . Thanks to Peoh.
2020-12-17 10:40:58 +00:00
Roger A. Light
791c63372b
Fix cjson include paths.
2020-12-04 22:15:19 +00:00
Roger A. Light
6ad5f19aef
CMake build fixes for Windows.
2020-12-03 14:02:17 +00:00
Roger A. Light
6fe3279436
Build fixes from Windows changes.
2020-12-02 20:38:21 +00:00
Roger A. Light
26ffe1300a
Various Windows build fixes.
2020-12-02 19:49:14 +00:00
Roger A. Light
550c54701e
Fix cmake build when cjson not available.
2020-12-02 15:50:33 +00:00
Roger A. Light
27967f8885
Prevent possible unitialised use.
2020-12-02 10:10:21 +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
d142ff69a6
Fix Coverity Scan issues.
...
511427
1431133
1436823
1436837
1436838
1436929
2020-11-24 00:22:34 +00:00
Roger A. Light
d26534e22b
Fix Coverity scan issues.
...
1302840
1353078
1431131
1431134
1431135
1436826
1436827
1436828
1436830
1436831
1436834
1436835
1436838
1436839
1436840
1436844
1436846
1436853
1436854
1436859
1436860
1436861
1436863
1436867
2020-11-23 22:05:12 +00:00
Dan White
a65242d74a
mosquitto_pub: exit if broker actively refuses a connection
...
Fixes eclipse/mosquitto#1904
If the broker rejects the connection, as opposed to the broker being
down, then there is no hope to establish a connection. This adds a
status flag so we can signal to the loop that we should just exit.
Signed-off-by: Dan White <dan.white@valpo.edu>
2020-11-18 15:42:35 +00:00
Dan White
61702d7acc
mosquitto_pub: exit if server becomes unreachable and QOS > 0
...
Fixes eclipse/mosquitto#1899
In stdin line mode, mosquitto_pub will continue running and accepting
input even if/when/after publishing fails. This condition is reached
when it first successfully establishes a connection and the server later
is unreachable.
Exiting with a non-zero exit code allows for much easier health
monitoring when used in a long-running pipe.
Signed-off-by: Dan White <dan.white@valpo.edu>
2020-11-18 15:42:21 +00:00
Roger A. Light
a0c39b193b
Fix description of -e
and -t
arguments in mosquitto_rr.
...
Closes #1881 . Thanks to Arnav Singh.
2020-11-07 23:11:55 +00:00
Roger A. Light
8e7e4a9d9a
Clients: Give warning if keepalive too low.
2020-11-03 09:51:28 +00:00
Roger A. Light
fdff255916
New dynamic security plugin.
2020-10-27 00:54:55 +00:00
Roger A. Light
4f61f6c161
Fix conversion errors.
2020-10-17 01:23:08 +01:00
Roger A. Light
89733138bb
CMake build fixes.
2020-10-13 16:07:35 +01:00
Roger Light
5b4e4f047b
Fix mosquitto_sub JSON printing with empty payloads.
2020-10-12 21:53:43 +01:00
Roger Light
ff2636b3ae
Build fix for Windows.
2020-09-30 09:47:24 +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
cd33670f6a
Fix build with WITH_CJSON=no
2020-09-08 12:26:55 +01:00