Commit Graph
328 Commits
Author SHA1 Message Date
Roger A. Light c8e313aac0 Fix build
This is for the case where command line overrides are set.
2023-09-19 22:48:24 +01:00
Roger A. Light e306691b7b Fix client build options 2023-05-29 11:20:11 +01:00
Roger A. Light a31bee722f Simplify make build. 2023-05-10 16:20:06 +01:00
Roger A. Light 53dc3006a2 Make cJSON a hard dependency. 2023-04-01 23:35:03 +01:00
Roger A. Light ed8211858e CMake build fixes 2023-03-27 22:32:46 +01:00
Roger A. Light 5fbe8e5be2 Add --tls-keylog for clients. 2023-03-03 15:31:46 +00:00
Roger A. Light c0b7f54ac1 Fuzzing: db_dump file loading 2023-02-04 23:55:15 +00:00
Roger A. Light 5fb4b05d8f Support for initial fuzzing through oss-fuzz 2023-01-31 13:54:21 +00:00
Roger A. Light 85f53b22dd Fix Coverity Scan 1251560 2023-01-25 13:28:57 +00:00
Roger A. Light dcbbf71cb2 Coverity suppressions 2023-01-25 12:00:48 +00:00
Roger A. Light 08a59670c9 Fix Coverity Scan 1251560 2023-01-25 09:40:12 +00:00
Roger A. Light 9a7d69f532 Fix Coverity Scan 1502688 2023-01-25 09:38:24 +00:00
Roger A. Light fd330de080 client_id -> clientid rename. 2023-01-16 18:46:35 +00:00
Roger A. Light 9260cf25f8 Fix parsing of IPv6 addresses in socks proxy urls. 2023-01-16 10:31:13 +00:00
Rob Swindell c060d2e0f4 Resolve win32 build Error C2440 with CALLBACK function decoration
'function': cannot convert from 'void (__cdecl *)(PVOID,BOOLEAN)' to 'WAITORTIMERCALLBACK'

Signed-off-by: Rob Swindell <rob@synchro.net>
2022-12-27 21:46:32 -08:00
Roger Light 9ee1dc5294 Merge pull request #2712 from NorbertHeusser/cleanup-include-guards
Cleanup of include guard defines
2022-12-22 15:37:05 +00:00
Roger A. Light 2e4db3aa2a Improve test/client/02-subscribe-format-json-properties.py 2022-12-22 13:39:57 +00:00
Norbert Heusser ba5f8eb448 Cleanup of include guard defines
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-12-21 15:35:38 +00:00
Roger A. Light afc76092a5 Give more information on invalid properties 2022-11-30 09:52:05 +00:00
Roger A. Light 3cbcc2e2b2 Fix Coverity Scan 1500471 and 1500472. 2022-11-13 09:42:31 +00:00
Roger A. Light 40636fdce0 Simplify sub client json printing. 2022-10-09 11:02:38 +01:00
Roger A. Light 7370a7d028 rr client does support < v5.0 2022-08-19 00:34:53 +01: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
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>
2022-08-08 12:24:15 +02:00
Kai Buschulte 8b67883548 Remove old compatibility header support
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-08-08 09:25:16 +00:00
Roger A. Light ca61baf5e3 Merge branch 'add-common-options-target-to-enable-compiler-warnings' of https://github.com/buschulte/mosquitto into buschulte-add-common-options-target-to-enable-compiler-warnings 2022-07-21 16:21:29 +01:00
Roger A. Light 11b16756cb Windows fixes. 2022-07-21 15:51:52 +01:00
Kai Buschulte 71456077ad Introduce a common-options cmake target
this makes it possible to explicitly share compile options, without
using the `add_definition` function. This function declares options for
the current directory and below (in our case also for `deps`).

Adding -Wall, -Wconversion and -Wextra to at least make compiler
warnings visible for the cmake build.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-07-04 11:16:01 +02:00
Roger A. Light 26b007f3fc Fix Coverity 1488816, use of uninitialised value. 2022-05-13 16:54:29 +01:00
Kai Buschulte 0e9df05d0d Add imported target for cJSON
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-05-11 07:01:17 +00:00
Roger A. Light 1da29c9e51 Fix -f and -s options in mosquitto_rr. 2022-05-04 22:25:51 +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
Tobias Assarsson a9a5ac2283 Don't reuse topic alias after reconnect. 2022-04-20 10:04:58 +02:00
Roger A. Light c70a925f29 Fix Coverity Scan 1486935 Logically dead code 2022-03-24 08:11:11 +00:00
Roger A. Light a0f58f20c3 Update threaded builds.
Most specifically use -pthread instead of -lpthread.
2022-02-09 22:19:35 +00:00
Roger A. Light 5a3b42d4a4 Use path vars in Makefiles. 2022-02-09 14:44:09 +00:00
Roger A. Light bc1adfd46d CMake fixes.
Builtin websockets support.
Persist sqlite plugin build.
Broker cJSON support
Add wildcard-temp plugin.
2022-02-04 22:28:26 +00:00
Roger A. Light 223d9eae66 mosquitto_sub json output tests, and user-properties fix. 2022-01-23 23:07:36 +00:00
Roger A. Light ab67dbcacd More client tests, and an output format fix. 2022-01-15 23:41:12 +00:00
Roger A. Light 3139eb3252 More client tests. 2022-01-14 23:08:09 +00:00
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 20d2935d81 Fix date format in mosquitto_sub output.
Closes #2353. Thanks to Norman Rasmussen.
2021-10-27 16:22:26 +01:00
Roger Light 65603da5e4 Add -W timeout support to Windows. 2021-10-20 11:48:26 +01:00
Roger A. Light b9b065d2cc Compiler pedantry, and more checks in tests. 2021-10-14 11:39:46 +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 Light 88dfac8e88 Windows threading support for the library. 2021-09-29 13:48:58 +01:00