stop strongswan if integrity check of libstrongswan or daemon fails

This commit is contained in:
Andreas Steffen
2009-07-17 20:33:19 +02:00
parent 6b04ba288d
commit eab241fb56
8 changed files with 49 additions and 25 deletions
+2 -2
View File
@@ -676,7 +676,7 @@ int main(int argc, char *argv[])
if (!library_init(STRONGSWAN_CONF))
{
library_deinit();
exit(-1);
exit(SS_RC_LIBSTRONGSWAN_INTEGRITY);
}
if (lib->integrity &&
@@ -684,7 +684,7 @@ int main(int argc, char *argv[])
{
dbg_stderr(1, "integrity check of charon failed");
library_deinit();
exit(-1);
exit(SS_RC_DAEMON_INTEGRITY);
}
lib->printf_hook->add_handler(lib->printf_hook, 'R',