streamlined integrity test output some more

This commit is contained in:
Andreas Steffen
2009-07-18 11:23:27 +02:00
parent 1d941f12ad
commit def1777eca
3 changed files with 6 additions and 5 deletions
+2
View File
@@ -467,6 +467,8 @@ static bool initialize(private_daemon_t *this, bool syslog, level_t levels[])
if (lib->integrity)
{
DBG1(DBG_DMN, "integrity tests enabled:");
DBG1(DBG_DMN, "lib 'libstrongswan': passed file and segment integrity tests");
DBG1(DBG_DMN, "daemon 'charon': passed file integrity test");
}
/* load secrets, ca certificates and crls */
+2 -5
View File
@@ -66,12 +66,9 @@ static plugin_t* load_plugin(private_plugin_loader_t *this,
{
if (!lib->integrity->check_file(lib->integrity, name, file))
{
DBG1("plugin '%s': failed file integrity test of"
" 'libstrongswan-%s.so'", name, name);
DBG1("plugin '%s': failed file integrity test of '%s'", name, file);
return NULL;
}
DBG1("plugin '%s': passed file integrity test of"
" 'libstrongswan-%s.so'", name, name);
}
handle = dlopen(file, RTLD_LAZY);
if (handle == NULL)
@@ -94,7 +91,7 @@ static plugin_t* load_plugin(private_plugin_loader_t *this,
dlclose(handle);
return NULL;
}
DBG1("plugin '%s': passed segment integrity test", name);
DBG1("plugin '%s': passed file and segment integrity tests", name);
}
plugin = constructor();
if (plugin == NULL)
+2
View File
@@ -646,6 +646,8 @@ int main(int argc, char **argv)
if (lib->integrity)
{
plog("integrity tests enabled:");
plog("lib 'libstrongswan': passed file and segment integrity tests");
plog("daemon 'pluto': passed file integrity test");
}
/* load plugins, further infrastructure may need it */