Commit Graph

86 Commits (d767aa488ca9a466271f6d303f9e1cadfef750fd)

Author SHA1 Message Date
Roger A. Light d767aa488c Remove unnecessary padding. 3 years ago
Roger A. Light 67d0792fd6 Remove duplicate code. 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 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
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 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
Roger A. Light ffb7661d86 Move shared code to common directory
This is currently limited to "utility" type functions and does not include code common to the library and broker that are protocol related.
4 years ago
Roger A. Light 5a3b42d4a4 Use path vars in Makefiles. 4 years ago
Roger A. Light 6b32cf61b2 CMake build fixes, including sqlite support. 4 years ago
Roger A. Light 8d073771c3 Make some plugin code shared for future use. 4 years ago
Roger A. Light 9b2c64135f listPlugins command, and test. 4 years ago
Roger A. Light 82658805c7 listListeners command. 4 years ago
Roger Light cd07f1136b Bump copyrights. 4 years ago
Roger A. Light 8ac11929cc Merge branch 'master' into develop 4 years ago
Roger A. Light 799cdead15 Experimental custom websockets support. 4 years ago
Roger A. Light a1a190b482 Pointless whitespace tidy. 4 years ago
Roger A. Light 55d5d2e5f2 Fix for building when uthash not available. 4 years ago
Roger Light dbd0d6f0d8 CMake build fixes. 4 years ago
Roger A. Light a25fc166a8 Add $CONTROL/broker/v1 control & the `getPluginInfo` command. 4 years ago
Roger A. Light aa29b45e70 Merge branch 'master' into develop 4 years ago
Roger A. Light 77af2ecefe Fix `mosquitto_ctrl dynsec setDefaultACLAccess` command not working. 4 years ago
Roger A. Light c862ffec8b Allow mosquitto_ctrl dynsec module to update passwords in files 4 years ago
Roger A. Light 182384440b Password salts are now 64 bytes long. 4 years ago
Roger A. Light 214feb8f6b Merge branch 'fixes' into develop 4 years ago
Roger Light 0a90e62f93 CMake tidy. 4 years ago
Roger Light e1c8f09372 Remove C++ style comments. 4 years ago
Roger A. Light 0446bba7df Fix some conversion warnings. 5 years ago
Roger A. Light 3ac2c3ee09 Improve mosquitto_ctrl documentation. 5 years ago
Roger Light 2de8c15bc9 Minor build fixes. 5 years ago
Roger A. Light 603107b87a Fix build of mosquitto_ctrl with static only libs. 5 years ago
Roger A. Light 706a1f3f29 Fix more minor compiler warnings. 5 years ago
Roger A. Light a4389fc9ce Fix SPDX identifiers: EDL-1.0 -> BSD-3-Clause.
The two licenses are the same.
5 years ago
Roger A. Light 9c4b9a0311 ctrl: Error if new passwords don't match.
Produce an error when requesting a new password if both
attempts do not match.

Closes #2011. Thanks to Willem Eradus.
5 years ago
Roger A. Light 26fbd0ec74 ctrl: Allow command line arguments to override config file options.
Closes #2010. Thanks to Willem Eradus.
5 years ago
Roger A. Light 370cec5edd Fixes for lots of minor build warnings highlighted by Visual Studio. 5 years ago
Roger Light 5b3acfe3cc Fix `mosquitto_ctrl dynsec getGroup` not showing roles.
Closes #1997. Thanks to Willem Eradus.
5 years ago
Roger A. Light 99e8c8001d Build lib from in mosquitto_ctrl directory. 5 years ago
Roger A. Light f7dc138157 Fix `install` target when using WITH_CJSON=no.
Closes #1938. Thanks to apple3306 and JulianCaruso.
5 years ago
Roger A. Light 791c63372b Fix cjson include paths. 5 years ago