starter: Use kernel interfaces to flush SAD and SPD.

This now supports platforms where neither 'ip xfrm' nor 'setkey' are
available (like Android).
This commit is contained in:
Tobias Brunner
2011-10-21 14:24:34 +02:00
parent f3a682c1ff
commit adab84533e
4 changed files with 12 additions and 19 deletions
+4
View File
@@ -29,6 +29,7 @@
#include <freeswan.h>
#include <library.h>
#include <hydra.h>
#include "../pluto/constants.h"
#include "../pluto/defs.h"
@@ -281,6 +282,9 @@ int main (int argc, char **argv)
library_init(NULL);
atexit(library_deinit);
libhydra_init("starter");
atexit(libhydra_deinit);
/* parse command line */
for (i = 1; i < argc; i++)
{