diff --git a/authplugin.cpp b/authplugin.cpp index 2e8b668..dbeea39 100644 --- a/authplugin.cpp +++ b/authplugin.cpp @@ -143,7 +143,7 @@ void Authentication::loadPlugin(const std::string &pathToSoFile) flashmq_auth_plugin_deinit_v1 = (F_flashmq_auth_plugin_deinit_v1)loadSymbol(r, "flashmq_auth_plugin_deinit"); flashmq_auth_plugin_acl_check_v1 = (F_flashmq_auth_plugin_acl_check_v1)loadSymbol(r, "flashmq_auth_plugin_acl_check"); flashmq_auth_plugin_login_check_v1 = (F_flashmq_auth_plugin_login_check_v1)loadSymbol(r, "flashmq_auth_plugin_login_check"); - flashmq_auth_plugin_periodic_event_v1 = (F_flashmq_auth_plugin_periodic_event)loadSymbol(r, "flashmq_auth_plugin_periodic_event", false); + flashmq_auth_plugin_periodic_event_v1 = (F_flashmq_auth_plugin_periodic_event_v1)loadSymbol(r, "flashmq_auth_plugin_periodic_event", false); flashmq_auth_plugin_extended_auth_v1 = (F_flashmq_auth_plugin_extended_auth_v1)loadSymbol(r, "flashmq_extended_auth", false); } diff --git a/authplugin.h b/authplugin.h index 4dd2727..e89927e 100644 --- a/authplugin.h +++ b/authplugin.h @@ -67,7 +67,7 @@ typedef void(*F_flashmq_auth_plugin_deinit_v1)(void *thread_data, std::unordered typedef AuthResult(*F_flashmq_auth_plugin_acl_check_v1)(void *thread_data, AclAccess access, const std::string &clientid, const std::string &username, const FlashMQMessage &msg); typedef AuthResult(*F_flashmq_auth_plugin_login_check_v1)(void *thread_data, const std::string &username, const std::string &password, const std::vector> *userProperties); -typedef void (*F_flashmq_auth_plugin_periodic_event)(void *thread_data); +typedef void (*F_flashmq_auth_plugin_periodic_event_v1)(void *thread_data); typedef AuthResult(*F_flashmq_auth_plugin_extended_auth_v1)(void *thread_data, const std::string &clientid, ExtendedAuthStage stage, const std::string &authMethod, const std::string &authData, const std::vector> *userProperties, std::string &returnData, std::string &username); @@ -111,7 +111,7 @@ class Authentication F_flashmq_auth_plugin_deinit_v1 flashmq_auth_plugin_deinit_v1 = nullptr; F_flashmq_auth_plugin_acl_check_v1 flashmq_auth_plugin_acl_check_v1 = nullptr; F_flashmq_auth_plugin_login_check_v1 flashmq_auth_plugin_login_check_v1 = nullptr; - F_flashmq_auth_plugin_periodic_event flashmq_auth_plugin_periodic_event_v1 = nullptr; + F_flashmq_auth_plugin_periodic_event_v1 flashmq_auth_plugin_periodic_event_v1 = nullptr; F_flashmq_auth_plugin_extended_auth_v1 flashmq_auth_plugin_extended_auth_v1 = nullptr; static std::mutex initMutex;