Commit Graph

41 Commits (40d8015837fed8e97af3790a0a5294fac1674f14)

Author SHA1 Message Date
Roger A. Light 40d8015837 Add MOSQ_EVT_SUBSCRIBE and MOSQ_EVT_UNSUBSCRIBE events.
These are called when subscribe/unsubscribes actually succeed.
4 years ago
Roger A. Light a61298d03a Fix persist docs
Add mosquitto_persist_client_msg_clear() for completeness.
4 years ago
Roger A. Light 0a4a029fbf Persist plugin: Simplify cases where we don't take a copy.
Some members of the persist plugin interface are only used to find a
client struct, for example. There is no need for the plugin to allocate
a new copy and the broker to free it in that case.
4 years ago
Roger A. Light 2ed05539c7 Merge branch 'develop' of https://github.com/Daedaluz/mosquitto into Daedaluz-develop 4 years ago
Roger A. Light cbb01193a0 Rename persist retain_add to retain_set 4 years ago
Roger A. Light 2d3b152a22 Rename of mosquitto_msg_store struct.
struct mosquitto_msg_store -> struct mosquitto_base_msg

This is the base message which client messages and retained messages
refer to. The base messages are still held in the message store.

This change comes about because the persistence interface exposes these
message types. Prior to this commit the different messages were "msg",
"client_msg", and "retain". After this commit there is "base_msg",
"client_msg", and and "retain_msg" in the persist interface.
4 years ago
Norbert Heusser e7e8b6e832 * Added list of connections to dynsec/getClient response
* Added new helper function mosquitto_apply_on_all_clients to broker
* Refactoring in dynamic-security plugin

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
4 years ago
Roger A. Light 78ee04cc27 Add mosquitto_client() for plugins, rearrange changelog. 4 years ago
Roger A. Light 0a0f4ead42 Plugin interface interface and test improvements. 4 years ago
Roger A. Light 01b3e04362 Rename `remove` to `delete` in external interface.
This is consistent with usage in the dynsec plugin.
4 years ago
Roger A. Light 9ce09de2e6 Add MOSQ_EVT_PERSIST_CLIENT_MSG_CLEAR plugin event. 4 years ago
Roger A. Light ff41157c2c Persistence interface documentation, plus better heap/non heap params
Be clear about whether the plugin or the broker owns `plugin_*` memory after function calls are made.
4 years ago
Roger A. Light 68fbb7b5bb auth method needs persisting. 4 years ago
Roger A. Light 6d3f85cf0c Have const/non const members.
Broker to plugin must be const.
Plugin to broker may need to be non-const.
4 years ago
Roger A. Light 0f8733627a Plugin persistence interface. 4 years ago
Roger A. Light cfe078cd32 Document function. 4 years ago
Roger A. Light 6fbdd71306 Broker id setting
This allows different brokers to share e.g. the same sql database and still have unique stored message ids.
4 years ago
Roger Light cd07f1136b Bump copyrights. 4 years ago
Roger A. Light 8ac11929cc Merge branch 'master' into develop 4 years ago
Roger A. Light 91e8344a3e Windows build fixes. 4 years ago
Roger A. Light a1a190b482 Pointless whitespace tidy. 4 years ago
Roger A. Light 0f2f77c945 Improve idle / mux timeout performance. 4 years ago
Roger A. Light 8acee6647c Add mosquitto_client_port() for plugins. 4 years ago
Roger A. Light 3413001d47 Add `mosquitto_plugin_set_info()`
This allows plugins to tell the broker their name and version.
4 years ago
Tobias Assarsson 2449dc006b Add `mosquitto_set_clientid` function for security plugins.
Signed-off-by: Tobias Assarsson <tobias.assarsson@gmail.com>
4 years ago
Roger A. Light 0d3870585b Plugin delayed authentication. 4 years ago
Roger A. Light fd036b9435 Merge branch 'fixes' into develop 5 years ago
Roger A. Light 7fe638786d Fix mosquitto_evt_tick struct members. 5 years ago
Roger A. Light a4389fc9ce Fix SPDX identifiers: EDL-1.0 -> BSD-3-Clause.
The two licenses are the same.
5 years ago
Roger A. Light 0087431bf4 Add MOSQ_EVT_CONNECT event.
This allows plugins to know when a client has successfully authenticated
to the broker.

Add connection-state example plugin to demonstrate MOSQ_EVT_CONNECT.
5 years ago
Roger A. Light 9d3732a62d Fix `auth_method` not being provided to the extended auth plugin event.
Closes #1975. Thanks to Jinming Chen.
5 years ago
Roger A. Light ce30f811ba Improve API documentation.
Fix return code on callback unregister.
5 years ago
Roger A. Light 6fe3279436 Build fixes from Windows changes. 5 years ago
Roger A. Light 3731535298 Add SPDX license identifiers. 5 years ago
Roger A. Light 584cf51ba7 Update to EPL-2.0 5 years ago
Roger A. Light c5fee09c24 Basic client disconnect event support for plugins. 5 years ago
Roger A. Light 06b933c3ba Add tick event to plugin interface. 5 years ago
Roger A. Light 4f61f6c161 Fix conversion errors. 5 years ago
Roger A. Light 267beb8a49 Export function on Windows. 5 years ago
Roger A. Light be8b94189c Document that X509_free() must be called after using mosquitto_client_certificate().
Closes #1842. Thanks to Wolfgang Petroschka.
5 years ago
Roger A. Light a65f946e83 Move headers to own directory. 5 years ago