Commit Graph

165 Commits (develop)

Author SHA1 Message Date
Roger A. Light a31bee722f Simplify make build. 2 years ago
Roger A. Light daf5d5f51d Fix mosquitto_ctrl regressions 2 years ago
Roger A. Light e482d08d85 Fix incorrect logic test 2 years ago
Roger A. Light 747fcacd67 Make args const where possible, fix persist-sqlite build. 2 years ago
Roger A. Light 56462c1229 Refactor for more consistent json helper use. 2 years ago
Roger A. Light 53dc3006a2 Make cJSON a hard dependency. 3 years ago
Roger A. Light 6f574f80ea db_dump: Fix further memory leak on exit only. 3 years ago
Roger A. Light bba3f3f849 db_dump: Fix memory not being freed on error exit. 3 years ago
Roger A. Light 44415cb974 Fix passwd fuzz build 3 years ago
Roger A. Light 105a652fbf Remove unused header. 3 years ago
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