IPsec policy manager added

This version only provides the very simplest management functions.
This commit is contained in:
Tobias Brunner
2012-08-08 15:41:03 +02:00
parent 3b8276b405
commit 7000cf11b1
6 changed files with 278 additions and 0 deletions
+2
View File
@@ -44,6 +44,7 @@ void libipsec_deinit()
{
private_ipsec_t *this = (private_ipsec_t*)ipsec;
DESTROY_IF(this->public.events);
DESTROY_IF(this->public.policies);
DESTROY_IF(this->public.sas);
free(this);
ipsec = NULL;
@@ -67,6 +68,7 @@ bool libipsec_init()
}
this->public.sas = ipsec_sa_mgr_create();
this->public.policies = ipsec_policy_mgr_create();
this->public.events = ipsec_event_relay_create();
return TRUE;
}