aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/starterstroke.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-04-17 15:01:57 +0000
committerMartin Willi <martin@strongswan.org>2008-04-17 15:01:57 +0000
commitb360e3933d84c5869d839ccd274fa191dc2daef0 (patch)
tree6e2d6114364b6702b142d19e85d19cb26445128b /src/starter/starterstroke.c
parent58126dd2957ed626791ae98689106e0d661f9b25 (diff)
downloadstrongswan-b360e3933d84c5869d839ccd274fa191dc2daef0.tar.bz2
strongswan-b360e3933d84c5869d839ccd274fa191dc2daef0.tar.xz
respecting ipsec.conf cachecrls= option
Diffstat (limited to 'src/starter/starterstroke.c')
-rw-r--r--src/starter/starterstroke.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/starter/starterstroke.c b/src/starter/starterstroke.c
index ddac5560b..1ee7ddc60 100644
--- a/src/starter/starterstroke.c
+++ b/src/starter/starterstroke.c
@@ -327,4 +327,17 @@ int starter_stroke_del_ca(starter_ca_t *ca)
return send_stroke_msg(&msg);
}
+int starter_stroke_configure(starter_config_t *cfg)
+{
+ stroke_msg_t msg;
+
+ if (cfg->setup.cachecrls)
+ {
+ msg.type = STR_CONFIG;
+ msg.length = offsetof(stroke_msg_t, buffer);
+ msg.config.cachecrl = 1;
+ return send_stroke_msg(&msg);
+ }
+ return 0;
+}