Commit Graph

849 Commits (2283585e391a6ca40a4abc252ac0e2111942b2d1)
 

Author SHA1 Message Date
Roger A. Light 2283585e39 Remove build timestamp information for reproducible builds. 8 years ago
Tatsuzo Osawa 2cd553c883 Add Changelog for #667
Signed-off-by: Tatsuzo Osawa <tatsuzo.osawa@gmail.com>
8 years ago
Roger A. Light b4c72e8fc0 Fix HUP disconnecting clients incorrectly.
Bug: https://github.com/eclipse/mosquitto/issues/657
8 years ago
Roger A. Light 9c6a5f3cf0 [656] Fix building on Windows.
Thanks to Arun Kirthi Cherian.

Bug: https://github.com/eclipse/mosquitto/issues/656
8 years ago
Tatsuzo Osawa 024fd400d4 Fix Unsubscribe with No Topic
Signed-off-by: Tatsuzo Osawa <tatsuzo.osawa@gmail.com>
8 years ago
Michael Heimpold 48dec391f7 Quote ${DESTDIR} usage in various Makefiles
This prevents failures during make install when whitespace
is part of DESTDIR pathname.

Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com>
8 years ago
Roger A. Light d3239920d7 Validate UTF-8 client ids, usernames and topics. 8 years ago
Roger A. Light 0745bcdb91 Improve some struct ordering. 8 years ago
Roger A. Light 8795f063d4 Add ability to deny access to SUBSCRIBE messages.
This is as well as the current read/write accesses. Currently for auth
plugins only.
8 years ago
Roger A. Light 712cbfe599 Default to mqtt v3.1.1 for clients. 8 years ago
Roger A. Light 7096d57c3a Documentation fix. 8 years ago
Roger A. Light 36e86355d7 Improve documentation and formatting. 8 years ago
Roger A. Light c0326c9e62 Enable epoll() by default on Linux. 8 years ago
Roger A. Light b11855821e Update UTF-8 validation checks. 8 years ago
toast-uz df9ad5f0bd Add Epoll. (#495)
Signed-off-by: Tatsuzo Osawa <tatsuzo.osawa@gmail.com>
8 years ago
Arnaud d5e8217d20 1.4.14 support for docker (#500)
Signed-off-by: agrosjea <arnaudg@momentfactory.com>
8 years ago
Pierre Fersing 31639fec65 Add test for persistent subscription (#501)
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
8 years ago
Roger A. Light c26b852c53 Don't double free when using remote_clientid/username/password. 8 years ago
Roger A. Light ac6997d7bc Fix merge error. 8 years ago
Roger A. Light a0c86aa31a Fix man page typo. 8 years ago
Roger A. Light 5a267368d7 Merge branch 'master' into develop 8 years ago
Roger A. Light ba0122f9a9 Don't disable IPv6 support for websockets. 8 years ago
Roger A. Light 46630e7325 Update change log. 8 years ago
Aska.Wu d40d7772d3 Fix the TLS handshake problem if PSK has leading zero
Incorrect psk will be provided by psk_server_callback() because leading zero
is skipped by BN_bn2bin() and BN_num_bytes().

Signed-off-by: Aska.Wu <askawu@gmail.com>
8 years ago
Roger A. Light d8cc5bc4fe Merge branch 'fixes' of github.com:eclipse/mosquitto into fixes 8 years ago
Roger A. Light 59f11aa094 Improve static client building. 8 years ago
Roger A. Light ef7a7850ac Add -c to mosquitto_pub. 8 years ago
Zard1096 5b73897f98 Fix iOS crash issues
Relate to issues #327 and #63.
mosq->sock may be closed before FD_SET(mosq->sock, &writefds) and
FD_ISSET(mosq->sock, &writefds) but after judgement in line 947
if(mosq->sock != INVALID_SOCKET). FD_SET(-1, ...) and FD_ISSET(-1, ...)
would certainly crash.

Signed-off-by: Zard1096 <mr.zardqi@gmail.com>
8 years ago
Roger A. Light 0ba0bc434e Use constant time memcmp for password checks. 8 years ago
Fredrik Fornwall 366194cde4 Replace getdtablesize() with sysconf(_SC_OPEN_MAX)
From http://man7.org/linux/man-pages/man3/getdtablesize.3.html:

"It is not specified in POSIX.1; portable applications should employ
sysconf(_SC_OPEN_MAX) instead of this call."

Specifically this fixes a build failure on Android which does not
have getdtablesize().

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
8 years ago
Roger A. Light e74203de2c Merge branch 'master' into develop 8 years ago
Roger A. Light d72ec39d79 Don't clean man pages with 'clean' target. 8 years ago
Roger A. Light 1fa4d74278 Bump version number. 8 years ago
Roger A. Light 2a50b2e9bd Fix regression from 1.4.13 where persistence data was not being saved. 8 years ago
Roger A. Light 8de5ed4464 Remove "error in poll" messages. 8 years ago
Roger A. Light 6b351ce0f1 Bump version number. 8 years ago
Roger A. Light cd17ca45cd [462] Relax CVE-2017-7650 checks.
Checks for '/' are no longer made, this character is a much lower risk
and is widely used in usernames.

Bug: https://github.com/eclipse/mosquitto/issues/462
8 years ago
Roger A. Light c3823c0a81 [462] Add auth_plugin_deny_special_chars option.
Auth plugins can be configured to disable the check for +# in
usernames/client ids with the auth_plugin_deny_special_chars option.

Thanks to wiebeytec.

Bug: https://github.com/eclipse/mosquitto/issues/462
8 years ago
Roger A. Light 5246a76f87 [477] Send will messages for connected clients when broker stops.
Thanks to mikeS7.

Bug: https://github.com/eclipse/mosquitto/issues/477
8 years ago
Roger A. Light 2d90a1f45b Fix umask value. 8 years ago
Roger A. Light 96db6d6644 Fix CONNECT check for reserved=0, as per MQTT v3.1.1 check MQTT-3.1.2-3. 8 years ago
Roger A. Light 94978ac89b Restore old umask after creating file. 8 years ago
Roger A. Light 6e7d02ba16 Fix for CVE-2017-9868 for Windows. 8 years ago
Pierre Fersing 408972ddc1 Fix two issues with Websocket (#472)
* Websocket were always marked as "want_write" (even if they only
  want to read, or worse want nothing).
* Websocket FD was read twice in some case (when socket recv queue was
  larger that size read by libwebsocket)

Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
8 years ago
Roger A. Light 09cb1b61c8 [468] Set persistence file to only be readable by owner.
Not implemented on Windows.

Thanks to Moshe Zioni.

Bug: https://github.com/eclipse/mosquitto/issues/468
8 years ago
Roger A. Light ab45f86d74 Prevent out of bounds array access. 8 years ago
Roger A. Light c78678607d [427] Fix large retained messages over websockets.
Thanks to Brian Block.

Bug: https://github.com/eclipse/mosquitto/issues/427
8 years ago
Roger A. Light bb61cd2dee Fix merge error. 8 years ago
Roger A. Light 326983d35e [417] Fix lazy bridges not timing out for idle_timeout.
Thanks to spinachmedia.

Bug: https://github.com/eclipse/mosquitto/issues/417
8 years ago
Roger A. Light 8f59d5ad28 Remove unused vars and reset pollfd_index on disconnect. 8 years ago