diff options
author | Martin Willi <martin@strongswan.org> | 2007-11-13 11:58:28 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-11-13 11:58:28 +0000 |
commit | e8287a405e9a25fdcad29c754db2bce25a8ca5ea (patch) | |
tree | 7a5df3d75bf8aa846eb86d54dbbd0d8a483f570b /src/manager/controller/config_controller.c | |
parent | 30a68d715b768751d15b9d72ed94c39a307bb1bd (diff) | |
download | strongswan-e8287a405e9a25fdcad29c754db2bce25a8ca5ea.tar.bz2 strongswan-e8287a405e9a25fdcad29c754db2bce25a8ca5ea.tar.xz |
implemented IKE_SA initiation in manager
Diffstat (limited to 'src/manager/controller/config_controller.c')
-rw-r--r-- | src/manager/controller/config_controller.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/manager/controller/config_controller.c b/src/manager/controller/config_controller.c index 7d14984fd..c5c96a070 100644 --- a/src/manager/controller/config_controller.c +++ b/src/manager/controller/config_controller.c @@ -55,7 +55,7 @@ static void process_peerconfig(private_config_controller_t *this, { xml_t *xml; enumerator_t *e1, *e2, *e3; - char *name, *value, *config = "", *child = ""; + char *name, *value, *config = "", *child = "", *section = ""; while (e->enumerate(e, &xml, &name, &value)) { @@ -80,7 +80,7 @@ static void process_peerconfig(private_config_controller_t *this, e1 = xml->children(xml); while (e1->enumerate(e1, &xml, &name, &value)) { - if (streq(name, "childcfg")) + if (streq(name, "childconfig")) { int num = 0; @@ -93,13 +93,14 @@ static void process_peerconfig(private_config_controller_t *this, } else if (streq(name, "local") || streq(name, "remote")) { + section = name; e3 = xml->children(xml); while (e3->enumerate(e3, &xml, &name, &value)) { if (streq(name, "network")) { - r->setf(r, "peercfgs.%s.childcfgs.%s.%s.%d=%s", - config, child, name, ++num, value); + r->setf(r, "peercfgs.%s.childcfgs.%s.%s.networks.%d=%s", + config, child, section, ++num, value); } } e3->destroy(e3); |