Roger A. Light
762ad432e8
Fix support for openssl 3.0
2020-05-12 13:39:49 +01:00
Roger A. Light
21f203b91a
Don't treact unexpected PUBACK/COMP as fatal.
2020-03-28 23:33:01 +00:00
Roger A. Light
a16d7e0661
iDon't treat an unexpected PUBREL as fatal.
...
Issue #1629 . Thanks to radcrabs.
2020-03-19 15:38:29 +00:00
Roger A. Light
346f695937
Separate out delay code from previous commit.
...
Plus add missing header.
2020-03-12 13:53:44 +00:00
Roger A. Light
5cf94d2e57
Merge branch 'fixes' of git://github.com/ChristianS99/mosquitto into fixes
2020-03-12 13:52:00 +00:00
Roger A. Light
7f41e37f0f
Fix use of sed on BSD.
...
Closes #1614 . Thanks to Christoph Krey.
2020-03-12 11:52:58 +00:00
Roger A. Light
c84d175b3d
Fixes for the poor souls stuck on <c99.
...
Closes #1622 .
2020-03-12 10:29:11 +00:00
Roger A. Light
b544b46156
Update version.
2020-02-27 23:27:29 +00:00
Roger A. Light
b0a065f790
Update changelog. Release page. Bump copyright.
2020-02-27 23:26:58 +00:00
Roger A. Light
b6a54a21d8
Remove duplicate code.
2020-02-12 16:47:46 +00:00
Roger A. Light
8d5fd7d1e2
Fix mosquitto_topic_matches_sub()
behaviour with wildcards in topic.
...
It was not returning MOSQ_ERR_INVAL if the topic contains a wildcard.
Closes #1589 . Thanks to mdelete.
2020-02-07 22:55:50 +00:00
Roger A. Light
2a8c1d03f5
Merge branch 'coverity-fixes' into fixes
2020-02-06 16:20:52 +00:00
Gianfranco Costamagna
7a5c2d4da5
Bugfix: include "deps" directory only if BUNDLED_DEPS has been provided and set to true
...
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
2020-02-06 15:20:29 +00:00
Roger A. Light
3a89059271
Don't call SSL_shutdown() if SSL init hasn't completed.
2020-02-04 17:11:11 +00:00
Roger A. Light
07c54627e9
Print OpenSSL errors in more situations
...
Covers when loading certificates fails, or there are ENGINE problems.
Closes #1552 . Thanks to Michael Richardson.
2020-02-04 16:59:29 +00:00
Roger A. Light
27b4518d7e
Improve password file parsing in the broker and mosqitto_passwd.
...
Closes #1584 . Thanks to panava.
2020-02-04 16:38:51 +00:00
Roger A. Light
e188a6b500
More whitespace trimming fixes/consolidation.
2020-01-30 22:26:13 +00:00
Roger A. Light
70fd600c3a
Fix trailing whitespace not being trimmed on acl users.
...
Closes #1539 . Thanks to CliveJL and LeonPoon.
2020-01-30 19:52:46 +00:00
Roger A. Light
81641df043
Expose net__print_ssl_error() prototype.
2020-01-30 15:14:52 +00:00
Roger A. Light
11ece604c4
Merge branch 'bugfix-MemLeak_in_handle_unsubscribe' of git://github.com/panava/mosquitto into panava-bugfix-MemLeak_in_handle_unsubscribe
2020-01-30 14:22:12 +00:00
Roger A. Light
89b55094c0
Merge branch 'bugfix-NullDeref_in_util_mosc.c' of git://github.com/panava/mosquitto into panava-bugfix-NullDeref_in_util_mosc.c
2020-01-30 12:43:09 +00:00
Roger A. Light
50735afb5b
Fix for internal logging not printing.
2020-01-29 16:25:56 +00:00
Panagiotis Vasilikos
dd6d8237cb
Potential Null pointer dereference in util_mosq.c
...
Reason: There is no check that the mosquitto__malloc at line 162 was sucessfull.
This could result to a Null pointer dereference in the memcpy call at line 166.
Fix: I added the check.
Signed-off-by: Panagiotis Vasilikos <panagiotis.vasilikos@alexandra.dk>
2020-01-29 10:17:58 +01:00
Roger A. Light
8f1c8cba59
Set minimum keepalive argument to mosquitto_connect*()
to be 5 seconds.
...
Closes #1550 . Thanks to Markus Gothe.
2020-01-28 16:59:20 +00:00
Panagiotis Vasilikos
caeb211cc5
Memory leak in socks_mosq.c
...
Reason: The memory allocated for the packet pointer at line 155 is not freed
before returning at line 188.
Fix: I inserted the mosquitto__free(packet) statement just before returning
at line 188.
Signed-off-by: Panagiotis Vasilikos <panagiotis.vasilikos@alexandra.dk>
2020-01-28 11:34:11 +01:00
Roger A. Light
4408339dbc
Make consts unsigned where they are compared against unsigned.
2020-01-23 12:51:47 +00:00
Roger A. Light
05ec02b3f3
Remove dead values.
2020-01-23 10:55:49 +00:00
Christian Schneider
a3ebeff9d7
fix: replace sleep with (p)select in loop_forever
...
sleep was blocking loop_stop(force=false) since it
was uniteruptible
Signed-off-by: Christian Schneider <cschneider@radiodata.biz>
2019-12-18 18:01:50 +01:00
Roger A. Light
b410568299
Bump version, add release post.
2019-11-28 17:08:11 +00:00
Roger A. Light
c37251c53d
Document mosquitto_connect_srv()
.
...
Closes #1499 . Thanks to Basavesh Shivakumar.
2019-11-22 11:16:53 +00:00
Roger A. Light
91961d93c4
Merge branch 'master' of git://github.com/basavesh/mosquitto into basavesh-master
2019-11-21 14:22:19 +00:00
Basavesh Shivakumar
7c34ed2eeb
Delete duplicate 'Returns' messages in the comments.
...
Signed-off-by: Basavesh Shivakumar <basavesh.shivakumar@gmail.com>
2019-11-16 21:44:18 -05:00
Roger A. Light
e6e7fc961d
Fix function in wrong doc section.
2019-10-31 12:04:29 +00:00
Roger A. Light
463fe8fc6c
Fix document issues in mosquitto.h.
...
Closes #1478 . Thanks to Liam Fry.
2019-10-31 11:58:54 +00:00
Roger A. Light
47dadb902d
Only call ERR_clear_error() after an error has occurred.
2019-10-24 22:57:05 +01:00
Roger A. Light
093c8f90f5
Fix publish props not being passed to v5 msg callback for QoS 2 msgs.
...
Closes #1432 . Thanks to Magnus Galåen.
2019-09-26 16:47:34 +01:00
Roger A. Light
6a01453ce0
Build fixes.
2019-09-25 12:17:17 +01:00
Roger A. Light
b7d8eb1122
Bump version number. Update www.
2019-09-25 11:30:01 +01:00
Roger A. Light
1a8c44b84f
Fix regression on use of mosquitto_connect_async()
not working.
...
Closes #1415 and #1422 . Thanks to Karl Palsson, Till Zimmermann and Liam Fry.
2019-09-24 20:15:04 +01:00
Roger A. Light
4b6cc208e2
Fix inflight max behaviour and option setting.
2019-09-24 11:26:25 +01:00
Roger A. Light
da5ff1746c
Don't use /
in auto client ids.
...
Also update client documentation about automatic client ids.
2019-09-24 10:05:42 +01:00
Roger A. Light
9883652dde
Bump version, update www and changelog.
2019-09-17 16:32:00 +01:00
Roger A. Light
1066750931
Restrict topic hierarchy to 200 levels to prevent possible stack overflow.
...
Closes #1412 . Thanks to Ryan Shaw.
2019-09-15 22:57:36 +01:00
Roger A. Light
344bbd087c
Install mqtt_protocol.h
2019-09-12 17:19:52 +01:00
Roger A. Light
6e2be25881
Bump version numbers, add release info.
2019-09-12 14:56:15 +01:00
Roger A. Light
808bbedb6a
Possible fix for #1385 .
2019-09-11 17:35:50 +01:00
Roger A. Light
ee3591d228
Fix missing locks on mosq->state
.
...
Closes #1374 . Thanks to Jeff Trull.
2019-09-08 21:11:20 +01:00
Roger A. Light
ba918ac73e
Fix reconnect backoff where connections are dropped
...
Closes #737 . Thanks to chelliwell.
2019-09-04 22:20:13 +01:00
Roger A. Light
412379b03b
Fix bridges potentially not connecting on Windows.
...
Closes #478 .
2019-09-04 17:51:16 +01:00
Roger A. Light
76865707b2
Guard ssize_t definition on Windows.
...
Closes #522 . Thanks to trinytron.
2019-09-04 17:41:50 +01:00