Commit Graph

1054 Commits (ffbdad93b4eac4dc8d975b08ce487490fb194fc6)
 

Author SHA1 Message Date
Roger A. Light ffbdad93b4 Don't reject ACL patterns without %u or %c, just warn.
Using `pattern blah/#` is a legitimate method of getting a global ACL.
We shouldn't be changing behaviour in a fixes release.
7 years ago
Natanael Copa fb802d6b3d Flush stdout when asking for password.
Make sure the prompt is actaually printed by flushing stdout when asking
for passwords.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
7 years ago
Tobias Assarsson a8142c2d7a Add missing parameters to internal mosquitto_acl_check
Signed-off-by: Tobias Assarsson <tobias.assarsson@gmail.com>
7 years ago
Roger A. Light 2f1416089d Add test for issue in #828.
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Rich Mattes 401d9493d2 Add documentation and networking dep to unit files
Updated the unit file examples to add a dependency on the
network-online.target systemd target to prevent mosquitto from
starting without network connectivity.

Added a documentation line to the unit files pointing to mosquitto
manpages.

Signed-off-by: Rich Mattes <richmattes@gmail.com>
7 years ago
Roger A. Light e64948979d Fix UNSUBACK messages not being logged.
Closes #903.

Thanks to Christoph Krey.
7 years ago
Roger A. Light f530ef93d1 Add test for issue 505. 7 years ago
Roger A. Light c79059b34e Fix `use_identity_as_username true` not working.
Closes #833.

Thanks to David Crook and Brice Waegeneire.

Bug: https://github.com/eclipse/mosquitto/issues/833

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
bricewge aa3503deb3 fix #833
Signed-off-by: Brice Waegeneire <brice.wge@gmail.com>
7 years ago
Roger A. Light 8ddb825f86 Better fix for #851.
Ensure all sockets that are closed are set to INVALID_SOCKET.

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light 329c031854 Update changelog.
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light 82a6969b74 Add new test to parallel test script.
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Wolfgang Hottgenroth 73bbc60390 Move check whether context is a bridge in front of check whether a listener
exists for context. New test now passes.

Signed-off-by: Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>
7 years ago
Wolfgang Hottgenroth a509a3d041 Add test which currently fails.
Signed-off-by: Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>
7 years ago
Wolfgang Hottgenroth e8c711b81c Change test scripts according to hints in #507 (replace localhost by 127.0.0.1)
Signed-off-by: Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>
7 years ago
Roger A. Light 20fbed21e3 ACL patterns that do not contain either %c or %u are now rejected.
Closes #209.

Bug: https://github.com/eclipse/mosquitto/issues/209

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light 9c53972f40 Fix connection problems when using mosquitto_connect_async().
The connection wouldn't always complete if mosquitto_loop_start() was
called before mosquitto_connect_async(). Closes #848.

Thanks to Ian Gough.

Bug: https://github.com/eclipse/mosquitto/issues/848

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Pierre Fersing f318bd383b Fix missing rename of mosquitto__socket_get_address
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
7 years ago
Roger A. Light 79a8c5a2e0 Fix problem on Pi caused by unsigned char being default.
Found via #849.

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light 0bd7cf86c6 Fix segfault on startup if bridge CA certificates could not be read.
Closes #851.

Thanks to chelliwell.

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light ad40419b18 Fix some places where return codes were incorrect.
Closes #850.

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light 832e3deb71 All clients now time out if they exceed their keepalive*1.5
This was inconsistent before.

Partially addresses #865.
7 years ago
Roger A. Light 2dd7df6498 Fix IPv6 addresses not being able to be used as bridge addresses.
Closes #886.

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light eb106907a6 Remove use of AI_ADDRCONFIG.
Closes #869, #901.

Thanks to Alex Richman.

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light db2feac172 Disable queued bytes test pending a fix.
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light 2bb6ad41b9 Use AF_UNSPEC etc. instead of PF_UNSPEC to comply with POSIX.
Closes #863.

Thanks to denigmus and Patrick TJ McPhee.

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light 31c0dc4832 Simplify broker tests with helper function. 7 years ago
Roger A. Light 0ef81bf9b8 Disable queued bytes test temporarily. 7 years ago
Roger A. Light de4adcd20e Print more OpenSSL errors when loading certificates/keys fail.
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Dave Miller d2f8db2d4c Fix for issue #874
With special acknowledgement to sxsing (his github login) for his
help in development and testing of this fix.

NOTE: Pull-request is against master as the fixes branch has not
been updated with the v1.5 file src/handle_connect.c

Signed-off-by: Dave Miller <dmiller@tibco.com>
7 years ago
Roger A. Light 24fb566168 Add test for issue #874. 7 years ago
Roger A. Light 9f8e2a1d0a [Broker] Fix auth plugin cleanup function not being called.
Closes #900.

Thanks to Julian Zhao.

Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light 65dfe291e2 Debian package 1.4.15. 7 years ago
Roger A. Light 7648a77806 Update to 1.4.15. 7 years ago
Roger A. Light 033624b4bb Merge branch 'master' into debian 7 years ago
Roger A. Light ebf4d3a920 Add github pull request template. 7 years ago
Roger A. Light 75fc908bba Fix snap launcher path. 7 years ago
Roger A. Light d8dc336c24 Static websockets option. 7 years ago
Roger A. Light 4c9548cc7c Bump snap version. 7 years ago
Roger A. Light 5e60136449 Merge branch 'develop' 8 years ago
Roger A. Light e9d03c8ffd Merge branch 'fixes' 8 years ago
Roger A. Light 84520296fa Bump version number. 8 years ago
Roger A. Light e90a32835b Merge branch 'fixes' into develop 8 years ago
Roger A. Light 8410a19335 Add fallback case for libressl. 8 years ago
Roger A. Light 1a913bddd9 Fix realpath() usage for nonexistant files. 8 years ago
Roger A. Light 377dc82d3f Fix parsing of configuration options that end with a space.
Closes #804.

Thanks to Nicola Lunghi.
8 years ago
Roger A. Light 6c7ecd7e97 Fix compiling without TLS. 8 years ago
Roger A. Light 51ec5601c2 Fix memory leak that could be caused by a malicious CONNECT packet.
Closes #533493 (on Eclipse bugtracker)

Thanks to Daniel Romero.
8 years ago
Roger A. Light cec1af1386 Don't print uninteresting epoll warnings. 8 years ago
Roger A. Light d3b3ba86f1 Updated crude performance test. 8 years ago