From ffb613dbeaea84a8732e992cdb660a051077995c Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Tue, 9 Feb 2016 18:11:29 +0200 Subject: [PATCH] Ticket 26. The int AUTH_IA::Reload() function definition added. --- .../authorization/inetaccess/inetaccess.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp index 9c8ae1af..1d126ae5 100644 --- a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp +++ b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp @@ -526,6 +526,24 @@ if (ret) return ret; } //----------------------------------------------------------------------------- +int AUTH_IA::Reload() +{ +AUTH_IA_SETTINGS newIaSettings; +MODULE_SETTINGS newSettings = settings; +if (newIaSettings.ParseSettings(newSettings)) + { + STG_LOGGER & WriteServLog = GetStgLogger(); + printfd(__FILE__, "AUTH_IA::Reload() - Failed to reload InetAccess.\n"); + WriteServLog("AUTH_IA: Cannot reload InetAccess. Errors found."); + return -1; + } + +STG_LOGGER & WriteServLog = GetStgLogger(); +printfd(__FILE__, "AUTH_IA::Reload() - Reloaded InetAccess successfully.\n"); +WriteServLog("AUTH_IA: Reloaded InetAccess successfully."); +return 0; +} +//----------------------------------------------------------------------------- int AUTH_IA::PrepareNet() { struct sockaddr_in listenAddr; -- 2.44.2