Commit Graph

881 Commits (dae10733604fffc01245802a5da7e2f8222b5de1)

Author SHA1 Message Date
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
Roger A. Light 4cfbb716be Remove unused member 3 years ago
Roger Light ac98c2135f
Merge pull request #2529 from NorbertHeusser/develop
Create github actions to trigger build and tests on devevlop branch
3 years ago
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 3 years ago
Roger A. Light 11b16756cb Windows fixes. 3 years ago
Roger A. Light 25bc6f3cf4 Require topics>0 in mosquitto_[un]subscribe*(). 3 years ago
Norbert Heusser f424667fca Merge branch 'develop' into NorbertHeusser:develop 3 years ago
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>
3 years ago
Kai Buschulte 36935a3384 Use OpenSSL:SSL cmake target
Instead of using the CMAKE_OPENSSL_INCLUDE and CMAKE_OPENSSL_LIBRARY
variables the imported target OpenSSL::SSL is used.
This is a more modern way of target linking.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light 436635fda8 Use absolute rather than relative paths when installing. 3 years ago
Roger Light 38295aeca3
Merge pull request #2559 from newAM/fix-mosquittopp-path
Fix install path to mosquittopp.h
3 years ago
Roger A. Light 546df9db85 Build fixes, particularly pedantic compiler warnings. 3 years ago
Alex Martens bb33c503b6 Fix install path to mosquittopp.h
Signed-off-by: Alex Martens <eclipse@thinglab.org>
3 years ago
Roger A. Light 29f49bf6ab Publish global out_packet values to $SYS 3 years ago
Roger A. Light 2e061afcc6 Fix build 3 years ago
Roger A. Light 4099f8d1b6 Store out_packet bytes rather than having to calculate it. 3 years ago
Roger A. Light ebfebf8708 Fix bridges not sending failure notification messages.
This is for messages to the local broker if the remote bridge connection
fails.

Closes #1488.
Closes #2467.
3 years ago
Roger A. Light b6b8039914 Fix use of `MOSQ_OPT_TLS_ENGINE` being unable to be used.
This was due to the openssl ctx not being initialised until starting to connect.

Closes #2537. Thanks to chessing-c4.
3 years ago
Norbert Heusser 6fbf6fc5cb
Merge branch 'eclipse:develop' into develop 3 years ago