aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/sql
diff options
context:
space:
mode:
authorAndreas Steffen <andreas@strongswan.org>2009-08-17 15:46:56 +0200
committerAndreas Steffen <andreas@strongswan.org>2009-08-17 15:46:56 +0200
commit8a17c1f9079edc7901d0342a5b746b9d1dcb2704 (patch)
tree3cfb305ae4d8bb644415c7315c5d2985e95bcb67 /src/charon/plugins/sql
parentbde541acf8dbd0196ab1d845179808535e644fba (diff)
downloadstrongswan-8a17c1f9079edc7901d0342a5b746b9d1dcb2704.tar.bz2
strongswan-8a17c1f9079edc7901d0342a5b746b9d1dcb2704.tar.xz
check integrity of pool code file
Diffstat (limited to 'src/charon/plugins/sql')
-rw-r--r--src/charon/plugins/sql/pool.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/charon/plugins/sql/pool.c b/src/charon/plugins/sql/pool.c
index d45c5799e..ebcc9adc7 100644
--- a/src/charon/plugins/sql/pool.c
+++ b/src/charon/plugins/sql/pool.c
@@ -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));