Roger A. Light
9a5c2bc14d
Add comment on thread safety to mosquitto_broker.h
...
Closes #3080
2024-10-02 00:32:49 +01:00
Carsten Andrich
57f0e1769a
define OPENSSL_API_COMPAT to use ENGINE API with OpenSSL >= 3.0
...
Signed-off-by: Carsten Andrich <carsten@andrich.name>
2024-09-07 00:31:04 +01:00
Carsten Andrich
d3975c8525
fix unused variable warning in net__socket_connect_tls()
...
Signed-off-by: Carsten Andrich <carsten@andrich.name>
2024-09-07 00:31:04 +01:00
Carsten Andrich
c22ced4915
fix unused parameter warning (only with cmake -DWITH_TLS=OFF) in mosquitto_void_option()
...
Signed-off-by: Carsten Andrich <carsten@andrich.name>
2024-09-07 00:31:04 +01:00
Carsten Andrich
1db26b3e2b
raise cmake_minimum_required(VERSION ...) to 3.5 to fix deprecation warning with CMake 3.27 and above
...
Signed-off-by: Carsten Andrich <carsten@andrich.name>
2024-09-07 00:31:04 +01:00
Joachim Zobel
729cd7ae1c
Link correctly with shared websockets library if needed
...
see: https://github.com/eclipse/mosquitto/pull/2751
Patch contributed by Joachim Zobel <jz-2017@heute-morgen.de> and Daniel Engberg <daniel.engberg.lists@pyret.net>
2024-09-07 00:25:45 +01:00
Roger A. Light
57b5549b3d
Fix "payload format invalid" not being allowed as a PUBREC reason code.
...
Thanks to mdrssv
2024-09-07 00:17:37 +01:00
Roger A. Light
f6d0ddcae0
Clear SSL error state to avoid spurious error reporting.
...
Thanks to koranyellow. Closes #3054 .
2024-09-06 23:56:42 +01:00
Roger A. Light
2d381d1605
Update changelog.
2024-09-06 23:45:11 +01:00
Diego Santa Cruz
688fa86de4
fix CLOCK_BOOTTIME use on kernels not having it
...
When the libc headers used to build mosquitto define CLOCK_BOOTTIME but
the kernel where mosquitto runs does not implement CLOCK_BOOTTIME, all
timestamps are wrong (uninitialized data), because there is no check for
the success of the clock_gettime() calls.
This adds probing for the availability of CLOCK_BOOTTIME from
mosquitto_lib_init(), falling back to CLOCK_MONOTONIC, and then modifies
mosquitto_time() to use the selected clock. Probing at init time avoids
having to do two clock_gettime() calls for every timestamp if
CLOCK_BOOTTIME is not available.
It also fixes a similar problem in mosquitto_lib_init().
Signed-off-by: Diego Santa Cruz <diego.santacruz@spinetix.com>
2024-09-06 23:41:56 +01:00
Flávio Tapajós
a87b5ff6d8
Increase logging of errors
...
commit 6113eac95a9df634fbc858be542c4a0456bfe7b9 started using MQTT_RC_*
enums as a handle__publish return value, which typically were MOSQ_ERR_*
values.
Signed-off-by: Flávio Tapajós <flavio.tapajos@newtesc.com.br>
2024-09-06 23:26:48 +01:00
Roger A. Light
7e4b5da4a9
Bump download-artifact action version.
2024-09-06 23:03:45 +01:00
Roger A. Light
39eac9847d
Fix bridge expiry
...
Fix local bridges being incorrectly expired when persistent_client_expiration is in use.
2024-06-05 16:07:23 +01:00
Roger A. Light
0881024aca
Windows: Installer quality of life improvements
2024-05-24 09:29:25 +01:00
Roger A. Light
3d4bac0fc7
Bump version number
2024-04-27 19:45:00 +01:00
Roger A. Light
00853f1c30
Add missing change from previous commit
2024-04-27 19:02:47 +01:00
Roger A. Light
5a513ecacd
Enable websockets on windows build
2024-04-27 16:51:51 +01:00
Roger A. Light
a3e5deb952
Use vcpkg Windows build for 2.0, re-enable thread support
2024-04-21 22:28:26 +01:00
Roger A. Light
fd097d5a0f
Fix assert failure when loading a persistence file.
...
If the file contains subscriptions with no client id.
2023-11-15 23:08:04 +00:00
Roger A. Light
28590fa383
Remove unused headers
2023-11-15 22:45:38 +00:00
Roger A. Light
b9f6d33ff0
Merge branch 'master' into fixes
2023-11-15 22:40:01 +00:00
Roger A. Light
15292b20b0
Update security page
2023-10-06 16:20:43 +01:00
Roger A. Light
87565238fd
Document keepalive=0 is allowed
2023-09-29 00:43:16 +01:00
Roger Light
b9a842a394
Merge pull request #1571 from LocutusOfBorg/dynamic-symbols
...
Add dynamic symbols linking with cmake too
2023-09-28 23:58:40 +01:00
Gianfranco Costamagna
5b011ff112
Add dynamic symbols linking with cmake too
...
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
2023-09-26 23:40:50 +02:00
Roger A. Light
f4400fa422
Bump docker
2023-09-18 22:32:22 +01:00
Roger A. Light
3923526c6b
Bump version, add webpage.
v2.0.18
2023-09-18 22:22:14 +01:00
Roger A. Light
97c25654ed
Add helper messages for lax permissions
2023-09-18 22:21:56 +01:00
Roger A. Light
7ae22c356b
Fix mosquitto_rr not honouring -R
.
...
Closes #2893 . Thanks to jwinder-ca
2023-09-13 09:02:55 +01:00
Roger A. Light
66c6276735
Fix protocol
2023-09-12 23:11:54 +01:00
Roger A. Light
f09ea91e11
Fix crash on subscribe under certain unlikely conditions.
...
Closes #2885 .
Closes #2881 .
Thanks to everybody on those issues.
2023-09-12 23:09:24 +01:00
Roger A. Light
1ed275b1d4
Version 2.0.17 and below post
2023-08-24 01:16:51 +01:00
Roger A. Light
f762a3fd1c
Update docker
2023-08-22 08:43:41 +01:00
Roger A. Light
597d64b7fb
Bump version.
v2.0.17
2023-08-22 08:40:19 +01:00
Roger A. Light
28d96d8ebc
Fix max_inflight_messages
not being set correctly.
...
Closes #2876 .
2023-08-22 08:39:40 +01:00
Roger A. Light
47ae6dd0e2
Fix mosquitto_passwd -U
backup file creation.
...
Closes #2873 .
2023-08-22 08:09:36 +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
166d1489f2
Update docker
2023-08-16 14:05:47 +01:00
Roger A. Light
9e0831b3ed
Merge branch 'fixes'
v2.0.16
2023-08-16 14:03:29 +01:00
Roger A. Light
afba3ec9a0
Bump version, update changelog.
2023-08-16 14:01:21 +01:00
Roger A. Light
1f3b23cd60
Fix broken links on security.md
...
Closes #2855 . Thanks to cfi-gb
2023-08-16 14:01:21 +01:00
Roger A. Light
66faab12d5
Document mosquitto_rr -W option
...
Closes #2839 . Thanks to KaeLL
2023-08-16 14:01:21 +01:00
Roger A. Light
20df874604
Remove broken Travis links.
...
Closes #2867
2023-08-16 14:01:21 +01:00
Roger A. Light
9109e9e0e2
Fix setlinebuf() on Windows
2023-08-16 14:01:21 +01:00
Roger A. Light
3ab0a9a3fd
mosquitto_ctrl dynsec init uses open( , O_EXCL | O_CREAT)
...
This allows us to refuse to open an existing file, without a race
condition.
2023-08-16 14:01:21 +01:00
Roger A. Light
00b24e0eb0
Fix memory leak when clients send v5 CONNECT packets.
...
This occurs when they have a will message that contains invalid property
types.
2023-08-16 14:01:21 +01:00
Roger A. Light
4f9002c58a
Fix UTF-8 control characters test
2023-08-16 14:01:21 +01:00
Roger A. Light
70d713ca07
Fix heap overflow when reading corrupt config with "log_dest file".
2023-08-16 14:01:21 +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
b76c3c7820
Dynsec: Don't allow duplicate c/g/r when loading config
2023-08-16 14:01:21 +01:00