Roger A. Light
5d41eaf46f
Add mosquitto__strndup
2023-09-20 21:44:13 +01:00
Roger A. Light
c8e313aac0
Fix build
...
This is for the case where command line overrides are set.
2023-09-19 22:48:24 +01:00
Roger A. Light
e656e694ed
Merge branch 'master' into develop
2023-09-09 15:20:40 +01:00
Roger A. Light
bfb373d774
Fix max_queued_message 0 stopping clients from receiving messages.
...
Closes #2789 . Thanks to Daedaluz.
2023-08-22 07:40:54 +01:00
Roger A. Light
284db04bc3
Library will no longer allow single level wildcard certificates, e.g. *.com
2023-08-16 14:01:21 +01:00
Roger A. Light
6113eac95a
Fix for CVE-2023-28366
2023-08-16 14:01:21 +01:00
Roger A. Light
a3c680fbb0
Fix for Eclipse #581199
2023-08-16 14:01:21 +01:00
Roger A. Light
4ca294fd9c
Warn on lax permissions on sensitive files.
...
- Broker will log warnings if sensitive files are world readable/writable, or
if the owner/group is not the same as the user/group the broker is running
as. In future versions the broker will refuse to open these files.
2023-08-16 14:01:21 +01:00
Roger Light
4093dad058
Merge pull request #2827 from bdesplanq/fix-engine-support
...
Fix engine keyfile support.
2023-08-15 14:09:01 +01:00
Roger A. Light
cb90e91126
Add missing mosquitto_strerror entries.
...
Closes #2799 . Thanks to n00b42
2023-08-12 10:12:52 +01:00
Roger A. Light
ba31065390
Fix Coverity Scan 1511194, use after free
...
Develop branch only
2023-07-09 08:37:01 +01:00
Roger A. Light
04ef5326db
Extend metrics to all packets.
...
Not published in $SYS, may be made available for plugins.
2023-06-28 22:03:14 +01:00
Bart Desplanques
105e30ff5b
Fix engine support.
...
Do not try to open keyfile when keyform is "engine": this is not necessarily a real file.
Dynamic engines require init with OPENSSL_INIT_ENGINE_DYNAMIC before they can be loaded.
Signed-off-by: Bart Desplanques <bart.desplanques@gmail.com>
2023-06-02 19:11:50 +02:00
Roger A. Light
068778f7d9
Use new accessor functions where sensible.
2023-05-31 22:55:41 +01:00
Roger A. Light
9be12f91af
Add mosquitto_property_*_value() alternate accessor functions.
2023-05-31 22:48:48 +01:00
Roger A. Light
e44042c32b
Add mosquitto_property_type().
2023-05-29 11:21:22 +01:00
Roger A. Light
a31bee722f
Simplify make build.
2023-05-10 16:20:06 +01:00
Roger A. Light
269756a171
Fix high CPU use on slow TLS connect.
...
Closes #2794 . Thanks to Evgeny S.
2023-04-27 23:25:52 +01:00
Roger Light
92c1899278
Add MOSQ_EVT_CLIENT_OFFLINE.
...
This allows plugins to know when a client with a non-zero session expiry
interval has gone offline.
2023-04-21 22:35:22 +01:00
Roger A. Light
086a361bcc
Simplify $SYS metric generation.
2023-04-21 21:57:37 +01:00
Roger A. Light
1bf753e773
Fix confusing message on TLS certificate verification.
...
Closes #2746 . Thanks to Akos Vandra-Meyer.
2023-04-01 17:52:12 +01:00
Roger A. Light
63da7472b5
Fix default settings incorrectly allowing TLS v1.1.
...
Closes #2722 . Thanks to KramNamez.
2023-03-28 01:39:28 +01:00
Roger A. Light
6f61710fa7
Merge branch 'fixes' of github.com:Daedaluz/mosquitto into Daedaluz-fixes
2023-03-27 23:37:55 +01:00
Roger A. Light
a791532c12
Simplify $SYS metric generation.
2023-03-10 23:48:47 +00:00
Roger A. Light
799e3c214d
Fix build in some configurations.
2023-03-03 15:31:46 +00:00
Tobias Assarsson
2e2a420099
use CLOCK_BOOTTIME when available.
...
Signed-off-by: Tobias Assarsson <tobias.assarsson@gmail.com>
2023-03-02 09:04:59 +01:00
Roger A. Light
d72e1c4949
Add mosquitto_property_remove
...
This isfor removing properties from property lists.
2023-02-16 11:56:14 +00:00
Roger A. Light
365f7047af
Message out event should be able to deny publishes.
2023-02-14 16:34:27 +00:00
Roger A. Light
23983afe82
Fix invalid handling of long hex in config file.
...
Closes oss-fuzz #55948 .
2023-02-13 22:08:44 +00:00
Roger A. Light
769c94a103
Fix oss-fuzz #55950
...
Reproduces in the fuzz target, but testing hasn't reproduced in real
code.
2023-02-13 22:01:11 +00:00
Roger A. Light
85f53b22dd
Fix Coverity Scan 1251560
2023-01-25 13:28:57 +00:00
Roger A. Light
dcbbf71cb2
Coverity suppressions
2023-01-25 12:00:48 +00:00
Roger A. Light
fd330de080
client_id -> clientid rename.
2023-01-16 18:46:35 +00:00
Roger A. Light
9ef6c49266
Renaming and adding tests.
2023-01-16 10:31:13 +00:00
Abilio Marques
1677d1aed2
allow message modification on output
...
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2023-01-16 10:29:50 +00:00
Roger A. Light
331e802913
Rename mosquitto_client_msg -> mosquitto__client_msg
2023-01-16 10:21:12 +00:00
Roger A. Light
475a708d30
Fix openssl 3 deprecations.
2023-01-11 22:34:08 +00:00
Roger A. Light
343a984083
Big rejig of library tests
...
Includes full consistency between C/C++ library tests
2023-01-02 11:45:09 +00:00
Roger Light
9ee1dc5294
Merge pull request #2712 from NorbertHeusser/cleanup-include-guards
...
Cleanup of include guard defines
2022-12-22 15:37:05 +00:00
Roger A. Light
2e4db3aa2a
Improve test/client/02-subscribe-format-json-properties.py
2022-12-22 13:39:57 +00:00
Norbert Heusser
ba5f8eb448
Cleanup of include guard defines
...
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-12-21 15:35:38 +00:00
Roger A. Light
f70806f6e7
Don't try to set TCP_NODELAY for unix sockets.
2022-12-19 15:24:22 +00:00
Roger Light
ac5dfca52a
Merge pull request #2703 from NorbertHeusser/makefile-improvements
...
Makefile improvements
2022-12-16 15:58:01 +00:00
Norbert Heusser
a65176667c
Fixed cleanup in lib/Makefile
...
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-12-09 18:03:39 +00:00
Roger A. Light
b157448b30
Fix possible memory leaks when repeating options.
2022-12-07 22:44:09 +00:00
Roger Light
80a4063bb4
Merge pull request #2683 from guillaumepellegrino/fixes_memleak
...
Fix memory leak in mosquitto_tls_opts_set()
2022-12-07 22:41:29 +00:00
Roger A. Light
fa21712278
Fix accidentally deleted lines.
2022-12-07 16:50:59 +00:00
Roger A. Light
d15c6bd7ef
Fix unitialised value and incorrect loop.
2022-12-07 15:26:13 +00:00
Roger A. Light
fc84340820
Add mosquitto_unsubscribe2_v5_callback_set
2022-12-07 15:05:54 +00:00
Roger A. Light
7419aa7530
Add more lib msg sequence tests
2022-12-07 15:05:54 +00:00