Roger A. Light
e3bf10cd9a
Change the way that new clients with match client ids are dealt with.
...
This change means that the connection isn't swapped from new context to
old, which makes dealing with websockets lots easier. It does require
that clients storing a list of their subscriptons.
11 years ago
Roger A. Light
070d783c9f
Merge 1.3.2-1.3.5 into 1.4.
11 years ago
Roger A. Light
bad7ec75f0
Temporarily disable ACL checks on subscriptions when using MQTT v3.1.1.
...
This is due to the complexity of checking wildcard ACLs against wildcard
subscriptions. This does not have a negative impact on security because
checks are still made before a message is sent to a client. Fixes bug
Thanks to Jan-Piet Mens and Christoph Krey.
11 years ago
Roger A. Light
dcd469c177
Use own linked list for storing disused contexts for freeing.
...
Seemed to be a problem with getting it to work under a hash and there
isn't really any need for a hash.
11 years ago
Roger A. Light
2bf7a8fb13
Prevent NULL derefencing and accessing of freed memory.
11 years ago
Roger A. Light
1fb5a3edc6
Use hash counts to calculate numbers of clients.
11 years ago
Roger A. Light
9286da192e
Fix unused var.
11 years ago
Roger A. Light
06bec1083d
Expose mosquitto_pub_topic_check() and mosquitto_sub_topic_check().
11 years ago
Roger A. Light
e5aa843ec7
Don't allow access to clients when authenticating if a security plugin returns an application error. Fixes bug #1340782 .
...
Thanks to Charlie Davis.
11 years ago
Roger A. Light
885d8ca5db
When a durable client reconnects, its queued messages are now checked against ACLs in case of a change in username/ACL state since it last connected.
...
Thanks to "web1".
11 years ago
Roger A. Light
bb1a69b7d7
Disconnect clients consistently.
11 years ago
Roger A. Light
3fd1dc477f
Fix defects identified by Coverity.
11 years ago
Roger A. Light
405b7f0aab
Don't free here, leads to potential double free.
11 years ago
Roger A. Light
0856e9519d
Need to assign ws_context here.
11 years ago
Roger A. Light
13f94f3511
More reconnect fixes.
11 years ago
Roger A. Light
2b300b718b
Fix double free for websockets with bad auth.
11 years ago
Roger A. Light
0fb064e0b4
Fix clean session for reconnecting clients.
11 years ago
Roger A. Light
fe5dba5887
Add use_username_as_clientid.
11 years ago
Roger A. Light
d75903b0ae
Fix reconnect support for websockets.
11 years ago
Roger A. Light
d60e44ec1b
Handle reconnects for websockets.
11 years ago
Roger A. Light
542ebb2480
Free peer certificate after use.
11 years ago
Roger A. Light
bdb3e74100
More memory fixes.
11 years ago
Roger A. Light
15efd2d072
Various memory fixes.
11 years ago
Roger A. Light
482d604598
Only remove from hash if a valid socket (i.e. if present)
11 years ago
Roger A. Light
480d8a08d0
Count disconnected clients on persistence restore.
11 years ago
Roger A. Light
764b7e0a91
Use hash functions to store client data.
11 years ago
Roger A. Light
4025fad5aa
libuuid is used to generate client ids, where it is available, when an MQTT v3.1.1 client connects with a zero length client id.
11 years ago
Roger A. Light
731391bcb3
Separate function for generating a random client id.
11 years ago
Roger A. Light
0461c08fdf
use_identity_as_username now no longer affects non-TLS listeners.
11 years ago
Roger A. Light
af49fc556a
When a durable client reconnects, its queued messages are now checked against ACLs in case of a change in username/ACL state since it last connected.
...
Thanks to "web1".
11 years ago
Roger A. Light
aca67a2170
Better function names.
11 years ago
Roger A. Light
1ef8575a35
Reset disconnect_t on client reconnect.
11 years ago
Roger A. Light
ad43754b62
Log username in single quotes.
11 years ago
Roger A. Light
7cef936ba6
Logging fixes.
11 years ago
Roger A. Light
6a7f77d2a8
More intelligent client counting.
11 years ago
Roger A. Light
0d80800786
Don't refuse clients with will topic that isn't allowed by acl.
11 years ago
Roger A. Light
85af9bdd9a
Simplify.
12 years ago
Roger A. Light
87579e0cac
Remove STRICT_PROTOCOL #ifdefs.
12 years ago
Roger A. Light
5da25ae5d9
Add support for "session present" in CONNACK messages for MQTT v3.1.1.
12 years ago
Roger A. Light
175299c872
Guard for incomplete code when using websockets.
12 years ago
Roger Light
0364bd1be7
Initial contribution.
12 years ago
Roger A. Light
4bb7a45b71
Crude, hard coded websockets support. No TLS.
12 years ago