Commit Graph

899 Commits (b648ba227b8b9f8f5e8ae5285028187275329202)

Author SHA1 Message Date
Roger A. Light a791532c12 Simplify $SYS metric generation. 3 years ago
Roger A. Light 799e3c214d Fix build in some configurations. 3 years ago
Roger A. Light d72e1c4949 Add `mosquitto_property_remove`
This isfor removing properties from property lists.
3 years ago
Roger A. Light 365f7047af Message out event should be able to deny publishes. 3 years ago
Roger A. Light 23983afe82 Fix invalid handling of long hex in config file.
Closes oss-fuzz #55948.
3 years ago
Roger A. Light 769c94a103 Fix oss-fuzz #55950
Reproduces in the fuzz target, but testing hasn't reproduced in real
code.
3 years ago
Roger A. Light 85f53b22dd Fix Coverity Scan 1251560 3 years ago
Roger A. Light dcbbf71cb2 Coverity suppressions 3 years ago
Roger A. Light fd330de080 client_id -> clientid rename. 3 years ago
Roger A. Light 9ef6c49266 Renaming and adding tests. 3 years ago
Abilio Marques 1677d1aed2 allow message modification on output
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
3 years ago
Roger A. Light 331e802913 Rename mosquitto_client_msg -> mosquitto__client_msg 3 years ago
Roger A. Light 475a708d30 Fix openssl 3 deprecations. 3 years ago
Roger A. Light 343a984083 Big rejig of library tests
Includes full consistency between C/C++ library tests
3 years ago
Roger Light 9ee1dc5294
Merge pull request #2712 from NorbertHeusser/cleanup-include-guards
Cleanup of include guard defines
3 years ago
Roger A. Light 2e4db3aa2a Improve test/client/02-subscribe-format-json-properties.py 3 years ago
Norbert Heusser ba5f8eb448 Cleanup of include guard defines
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Roger A. Light f70806f6e7 Don't try to set TCP_NODELAY for unix sockets. 3 years ago
Roger Light ac5dfca52a
Merge pull request #2703 from NorbertHeusser/makefile-improvements
Makefile improvements
3 years ago
Norbert Heusser a65176667c Fixed cleanup in lib/Makefile
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Roger A. Light b157448b30 Fix possible memory leaks when repeating options. 3 years ago
Roger A. Light fa21712278 Fix accidentally deleted lines. 3 years ago
Roger A. Light d15c6bd7ef Fix unitialised value and incorrect loop. 3 years ago
Roger A. Light fc84340820 Add mosquitto_unsubscribe2_v5_callback_set 3 years ago
Roger A. Light 7419aa7530 Add more lib msg sequence tests 3 years ago
Roger A. Light 57665e722d Remove obsolete openssl cleanup code 3 years ago
Roger A. Light 001b8d7da8 Remove duplicate code 3 years ago
Roger A. Light 94b366b5e7 Start of message sequence "fuzzish" tests for library 3 years ago
Roger A. Light d53653b017 Port from `fixes` 3 years ago
Roger A. Light 1e0a07ba5a Add missing int to string conversions. 3 years ago
Roger A. Light d64331603c Don't use TLS v1.1 by default. 3 years ago
Roger A. Light b8b1674183 Tidy unused defs. 3 years ago
Roger A. Light 1382fded00 Compile picohttpparser only once 3 years ago
Roger A. Light 65a6191202 Set mosquitto_read_*() values to NULL when empty
`mosquitto_property_read_binary/string/string_pair` will now set the
name/value parameter to NULL if the binary/string is empty. This aligns the
behaviour with other property functions.

Closes #2648. Thanks to Alexander Fiebig.
3 years ago
Roger A. Light dcea1a9c89 Merge branch 'fix-mosquitto-client-sub-count' of https://github.com/buschulte/mosquitto into buschulte-fix-mosquitto-client-sub-count 3 years ago
Roger A. Light 4fed95b572 Merge subleaf and client_sub structs to simplify use. 3 years ago
Kai Buschulte 32588f45ab Introduce subs_count for client subscriptions
This is the actual number of subscriptions.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 31cdd26230 Rename sub_count to subs_capacity
sub_count is not the actual number of subscriptions.
Renamed it to subs_capacity, as it keeps the value of allocated
mosquitto__client_sub elements stored in the subs member of the
mosquitto struct.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light 27941ae9c2 Fix Coverity Scan 1499830 3 years ago
Kai Buschulte c646172c05 set mqtt v5 callbacks in C++ wrapper of lib
This caused "unused function" warnings

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light f5a09992be Fix cpp include build 3 years ago
Roger A. Light fd68bf00c7 Merge branch 'master' into develop 3 years ago
Roger A. Light 49ebb58569 Fix failure to close thread in some situations.
Closes #2545. Thanks to p-luke.
3 years ago
Roger A. Light 02b92b97ef Fix use of MOSQ_OPT_SSL_CTX when used with MOSQ_OPT_SSL_CTX_DEFAULTS
Closes #2463. Thanks to Tim Nordell.
3 years ago
Roger A. Light 6468bb4f9b Fix documentation omission around mosquitto_reinitialise.
Closes #2489. Thanks to rroguski
3 years ago
Roger A. Light e979a46c04 Backport SSL connect fixes.
Closes #2594.
Closes #2595.
3 years ago
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>
3 years ago
Kai Buschulte 8b67883548 Remove old compatibility header support
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light a913de2d28 Fix some PUBLISH messages not being counted in $SYS stats.
Closes #2448. Thanks to Antoine.
3 years ago
Roger A. Light 0c9d9f2163 Don't set SIGPIPE to ignore, use MSG_NOSIGNAL instead.
Closes #2564. Thanks to nmeum.
3 years ago