Document what to do on non-matching plugin versions.

This commit is contained in:
Roger A. Light 2020-10-24 00:17:13 +01:00
parent 42b9d94e91
commit 95e009c429
2 changed files with 5 additions and 2 deletions

View File

@ -123,6 +123,9 @@ struct mosquitto_acl_msg {
* return the plugin interface version you support, i.e. 5.
*
* The supported_versions array tells you which plugin versions the broker supports.
*
* If the broker does not support the version that you require, return -1 to
* indicate failure.
*/
int mosquitto_plugin_version(int supported_version_count, const int *supported_versions);

View File

@ -370,8 +370,8 @@ static int security__module_init_single(struct mosquitto__listener *listener, st
}
}else{
log__printf(NULL, MOSQ_LOG_ERR,
"Error: Incorrect auth plugin version (got %d, expected %d).",
version, MOSQ_AUTH_PLUGIN_VERSION);
"Error: Unsupported auth plugin version (got %d, expected %d).",
version, MOSQ_PLUGIN_VERSION);
LIB_ERROR();
LIB_CLOSE(lib);