Roger A. Light
77b5dfb770
Fuzzing: Basic mosquitto_passwd target
3 years ago
Roger A. Light
da723c373b
Fix db_dump crash on corrupt file.
...
Closes oss-fuzz #55789
3 years ago
Roger A. Light
5232e041d1
db_dump: Tidy up error reporting.
3 years ago
Roger A. Light
61c9696bec
db_dump: Use single corrupt db message path.
3 years ago
Roger A. Light
c0b7f54ac1
Fuzzing: db_dump file loading
3 years ago
Roger A. Light
5fb4b05d8f
Support for initial fuzzing through oss-fuzz
3 years ago
Roger A. Light
fd330de080
client_id -> clientid rename.
3 years ago
Roger A. Light
5364410615
Rename members
3 years ago
Roger A. Light
331e802913
Rename mosquitto_client_msg -> mosquitto__client_msg
3 years ago
Roger A. Light
3634f18bc9
Refactor subscription structs
3 years ago
Roger A. Light
86ec8c6169
Factor out unneeded argument
3 years ago
Roger A. Light
100fd31530
Refactor base_msg structs.
3 years ago
Roger A. Light
2d969efdc4
Fix cmake tests
3 years ago
Roger A. Light
56b1fa01bd
Fix Coverity Scan 1436848
3 years ago
Roger A. Light
2e36d523c8
Rename mosquitto_base_msg -> mosquitto__base_msg
3 years ago
Norbert Heusser
2ec6901e92
Fixed target clean in apps/db_dump Makefile
...
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Roger A. Light
1e0a07ba5a
Add missing int to string conversions.
3 years ago
Roger A. Light
b49631df23
Add mosquitto_passwd tests
3 years ago
Roger A. Light
9cc5d1d6ff
Add mosquitto_ctrl tests
3 years ago
Roger A. Light
89cca44c17
Refactor to remove duplicate code.
3 years ago
Roger A. Light
86f3a6b484
Extend db_dump tests, and fix minor bugs.
3 years ago
Roger A. Light
d767aa488c
Remove unnecessary padding.
3 years ago
Roger A. Light
26de915f53
Use MAKE macro, no need to pass MAKEFLAGS.
3 years ago
Roger A. Light
88b20c9113
Fix missing make targets
3 years ago
Roger A. Light
67d0792fd6
Remove duplicate code.
3 years ago
Roger A. Light
27c99bc7e7
Add db_dump test to verify current broker output.
3 years ago
Roger A. Light
6b1b0bf7bc
Start of db_dump tests.
3 years ago
Roger A. Light
afc575aa1c
Simplify function calls.
3 years ago
Roger A. Light
4997b40259
Report persistence stats when starting.
3 years ago
Roger A. Light
ca618c6f96
Fix db_dump coverage build
3 years ago
Roger A. Light
fd68bf00c7
Merge branch 'master' into develop
3 years ago
Roger A. Light
f9fa19ce6a
- Fix `-o` not working in `mosquitto_ctrl`, and typo in related documentation.
...
Closes #2471 . Thanks to Vitaljok and rillbert
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
d71451984c
Fix frees in db_dump.
3 years ago
Roger A. Light
c397d080b4
Merge branch 'fix-corrupted-dynsec-config' of https://github.com/NorbertHeusser/mosquitto into NorbertHeusser-fix-corrupted-dynsec-config
3 years ago
Norbert Heusser
621d74fd6a
Created new helper function mosquitto_write_file in common/misc_mosq.h to consolidate
...
saving config files in failsafe manner
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
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
e3246f547c
Print messages in mosquitto_passwd when adding/updating passwords.
...
Closes #2544 . Thanks to Shruti Nanda.
3 years ago
Roger A. Light
3e1cf8a80b
Fix tests build.
3 years ago
Kai Buschulte
0e9df05d0d
Add imported target for cJSON
...
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Norbert Heusser
d4216c8cb6
Fixed CMakeLists.txt
...
* Addded missing files plugin_subscribe and plugin_unsubscribe to src/CMakeLists.txt
* Aligned mixed usage of all-keyword and all-plain in target_link_libra…ry definition in in CMakeLists.txt
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
4 years ago
Roger A. Light
b922c13509
Compile broker against pthreads if threading enabled.
...
This allows plugins to *carefully* use threads.
4 years ago
Roger A. Light
dbe1554cf5
Fix Coverity Scan 1486946 Resource leak.
4 years ago
Roger A. Light
726b7f42a8
Fix Coverity Scan 1486941
4 years ago
Roger A. Light
2d3b152a22
Rename of mosquitto_msg_store struct.
...
struct mosquitto_msg_store -> struct mosquitto_base_msg
This is the base message which client messages and retained messages
refer to. The base messages are still held in the message store.
This change comes about because the persistence interface exposes these
message types. Prior to this commit the different messages were "msg",
"client_msg", and "retain". After this commit there is "base_msg",
"client_msg", and and "retain_msg" in the persist interface.
4 years ago
Roger A. Light
14d1c32f9d
Update changelog. Style, whitespace and, linker fixes.
4 years ago
Roger A. Light
96931643a4
Use strings.h for strcasecmp, except on Windows.
...
Closes #2420 . Thanks to Frédéric Fauberteau.
4 years ago
Norbert Heusser
e7e8b6e832
* Added list of connections to dynsec/getClient response
...
* Added new helper function mosquitto_apply_on_all_clients to broker
* Refactoring in dynamic-security plugin
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
4 years ago