check integrity of pool code file
This commit is contained in:
@@ -644,6 +644,12 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
exit(SS_RC_LIBSTRONGSWAN_INTEGRITY);
|
||||
}
|
||||
if (lib->integrity &&
|
||||
!lib->integrity->check_file(lib->integrity, "pool", argv[0]))
|
||||
{
|
||||
fprintf(stderr, "integrity check of pool failed\n");
|
||||
exit(SS_RC_DAEMON_INTEGRITY);
|
||||
}
|
||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
|
||||
lib->settings->get_str(lib->settings, "pool.load", PLUGINS));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user