aboutsummaryrefslogtreecommitdiffstats
path: root/src/scepclient/scepclient.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas@strongswan.org>2009-08-17 14:25:18 +0200
committerAndreas Steffen <andreas@strongswan.org>2009-08-17 14:25:18 +0200
commitbde541acf8dbd0196ab1d845179808535e644fba (patch)
tree6c6613272b6890fdb142379de19899ce96391370 /src/scepclient/scepclient.c
parent430dd08a2b813056b33299de3f04b03bce7a1438 (diff)
downloadstrongswan-bde541acf8dbd0196ab1d845179808535e644fba.tar.bz2
strongswan-bde541acf8dbd0196ab1d845179808535e644fba.tar.xz
integrity test of openac and scepclient code files
Diffstat (limited to 'src/scepclient/scepclient.c')
-rw-r--r--src/scepclient/scepclient.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c
index 88dd28521..6c0166d66 100644
--- a/src/scepclient/scepclient.c
+++ b/src/scepclient/scepclient.c
@@ -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();