merged multi-auth branch back into trunk

This commit is contained in:
Martin Willi
2009-04-14 10:34:24 +00:00
parent 6e5c8d9413
commit a44bb9345f
230 changed files with 6163 additions and 4193 deletions
+8
View File
@@ -38,6 +38,7 @@
#endif /* CAPABILITIES */
#include <freeswan.h>
#include <settings.h>
#include <pfkeyv2.h>
#include <pfkey.h>
@@ -197,6 +198,9 @@ delete_lock(void)
}
}
/* settings defined by strongswan.conf */
settings_t *settings;
/* by default pluto sends certificate requests to its peers */
bool no_cr_send = FALSE;
@@ -239,6 +243,9 @@ main(int argc, char **argv)
int keep[] = { CAP_NET_ADMIN, CAP_NET_BIND_SERVICE };
#endif /* CAPABILITIES */
/* getting settings from strongswan.conf */
settings = settings_create(STRONGSWAN_CONF);
/* handle arguments */
for (;;)
{
@@ -703,6 +710,7 @@ exit_pluto(int status)
free_ifaces();
scx_finalize(); /* finalize and unload PKCS #11 module */
xauth_finalize(); /* finalize and unload XAUTH module */
settings->destroy(settings);
stop_adns();
free_md_pool();
delete_lock();