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
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