Commit Graph

3457 Commits (dfa9a22d6469c67c72ee0255b95800a3954de60a)
 

Author SHA1 Message Date
Roger A. Light 832e51cb57 dynsec: reduce memory allocations 3 years ago
Roger A. Light 570d54e4e8 Fix tests on when running under valgrind 3 years ago
Roger A. Light e5d6bbb907 dynsec: don't leave in partial state on error 3 years ago
Roger A. Light 9b04d0dd36 dynsec: Add roles to group test. 3 years ago
Roger A. Light 684c99261a argv tests for mosquitto_rr 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 d71451984c Fix frees in db_dump. 3 years ago
Roger A. Light dd34b707ac Fix Coverity Scan 1490914. 3 years ago
Roger A. Light e082e54fe2 Fix Coverity Scan 1490915. 3 years ago
Roger A. Light 965b506e0a Tidy 3 years ago
Roger A. Light efef2abdce Separate coverity scan branches scans. 3 years ago
Roger A. Light 2c2c951861 Silence coverity scan on string termination. 3 years ago
Roger A. Light e70fd299f8 Fix from windows changes 3 years ago
Roger A. Light 1ccde47e8e Windows build fix. 3 years ago
Roger A. Light 485ac04082 Merge branch 'NorbertHeusser-fix-corrupted-dynsec-config' into develop 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
Roger A. Light 8d611a59ab Windows build fix. 3 years ago
Roger A. Light 4cd57dea8a Merge branch 'buschulte-add-common-options-target-to-enable-compiler-warnings' into develop 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 86117d44d4 Windows: Add exports for new public broker functions. 3 years ago
Roger A. Light 1e4dbd81fd Update mosquitto_[un]subscribe*() requirements. 3 years ago
Roger Light cb562e5da2
Merge pull request #2583 from buschulte/coverage
CMake: introduce a coverage target
3 years ago
Roger A. Light 71a90177d7 Systemd: Add mosquitto group ownership
Thanks to minfrin
3 years ago
Roger A. Light 25bc6f3cf4 Require topics>0 in mosquitto_[un]subscribe*(). 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
Norbert Heusser f424667fca Merge branch 'develop' into NorbertHeusser:develop 3 years ago
Roger A. Light 4093e717f9 Minor refactor 3 years ago
Roger A. Light ff97fbfe94 Fix links 3 years ago
Roger A. Light ee1487743a Remove dead link 3 years ago
Roger A. Light ca009907e5 Web page update including external docs. 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 f486b45619 CMake: introduce a coverage target
to produce coverage information while running the tests, call cmake with
the following options:

cmake -DCMAKE_C_FLAGS=-coverage -DCMAKE_CXX_FLAGS=-coverage <build-dir>

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger Light a3d94359f9
Merge pull request #2581 from buschulte/cmake-with-test-option
Introduce a CMake WITH_TESTS option
3 years ago
Roger Light c4e74319ac
Merge pull request #2580 from buschulte/fix-cmake-build-for-older-versions
Fix CMake build for versions <3.19
3 years ago
Kai Buschulte 5b02490fd2 Introduce a CMake WITH_TESTS option
To enable or disable tests in the build step and to circumvent the
CUnit build dependency.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte d66702ba37 Fix CMake build for versions <3.19
CMake <3.19 does not support interface targets with sources.
For better IDE integrations we still can add the config.h using the
`target_sources` command.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte a883bda9c1 Add CMake test target
Use `ctest` or `make test` to run all tests.
With this it's also possible to run tests on a Mac.

Relative paths used in tests become absolute ones to make tests
executable from any build folder.

Also fixed race condition in
  test/broker/11-persistent-subscription-no-local.py

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 0fe397603b Workaround problem with sqlite3-wal files
These files are not removed but empty for some versions of sqlite3

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 4eadc96bcb Add Traceback to failing packet_match
This helps finding the caller/cause of the failure

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 8b5a86fd52 Introduce config-header cmake target
This is an interface cmake target which specifies include directories
required by the config.h places in the root of the project.

This header is a "public" header visible to plugins linking the
mosquitto exports.

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
Norbert Heusser 71e1b92564 Fixed race condition in test/broker/11-persistent-subscription-no-local.py 3 years ago
Roger Light 6c1bb33e86
Merge pull request #2573 from buschulte/throw-broken-pipe-error-when-loosing-connection
throw BrokenPipeError if nothing received on socket
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 Light f1bf2938b0
Merge pull request #2577 from marchputt/patch-1
Fix syntax errors in examples
3 years ago
Pargorn Puttapirat 9417facffa
Fix syntax errors in examples
Problematics examples: addRoleACL and removeRoleACL
3 years ago
Roger A. Light 34391080d6 Add dynsec init by simple file. 3 years ago
Kai Buschulte a7304083f8 throw BrokenPipeError if nothing received on sock
instead of ignoring this error, we throw an exception
the previous way might cause hard to find issues

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago