Added class to relay IPsec events (like expiration) to listeners
Currently, only expiration of IPsec SAs is supported. Later other events for e.g. acquires or changed NAT endpoints could be added.
This commit is contained in:
@@ -43,6 +43,7 @@ ipsec_t *ipsec;
|
||||
void libipsec_deinit()
|
||||
{
|
||||
private_ipsec_t *this = (private_ipsec_t*)ipsec;
|
||||
DESTROY_IF(this->public.events);
|
||||
DESTROY_IF(this->public.sas);
|
||||
free(this);
|
||||
ipsec = NULL;
|
||||
@@ -66,6 +67,7 @@ bool libipsec_init()
|
||||
}
|
||||
|
||||
this->public.sas = ipsec_sa_mgr_create();
|
||||
this->public.events = ipsec_event_relay_create();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user