integrity test of openac and scepclient code files

This commit is contained in:
Andreas Steffen
2009-08-17 14:25:18 +02:00
parent 430dd08a2b
commit bde541acf8
4 changed files with 27 additions and 0 deletions
+7
View File
@@ -392,6 +392,13 @@ int main(int argc, char **argv)
library_deinit();
exit(SS_RC_LIBSTRONGSWAN_INTEGRITY);
}
if (lib->integrity &&
!lib->integrity->check_file(lib->integrity, "scepclient", argv[0]))
{
fprintf(stderr, "integrity check of scepclient failed\n");
library_deinit();
exit(SS_RC_DAEMON_INTEGRITY);
}
/* initialize optionsfrom */
options = options_create();