diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-07-13 13:32:27 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-08-08 15:41:03 +0200 |
commit | b50f56f326d1e58d13f4287280799236fd239a05 (patch) | |
tree | cbee4e217429da513516c2073305483da12e29f0 /src/libipsec/ipsec.c | |
parent | 914479370ed23aa420a15ef3f19c2c39dce3b133 (diff) | |
download | strongswan-b50f56f326d1e58d13f4287280799236fd239a05.tar.bz2 strongswan-b50f56f326d1e58d13f4287280799236fd239a05.tar.xz |
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.
Diffstat (limited to 'src/libipsec/ipsec.c')
-rw-r--r-- | src/libipsec/ipsec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libipsec/ipsec.c b/src/libipsec/ipsec.c index 5ae6c74aa..49773abc9 100644 --- a/src/libipsec/ipsec.c +++ b/src/libipsec/ipsec.c @@ -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; } |