diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-05-19 17:27:32 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-07-06 09:43:45 +0200 |
commit | 4bbce1ef37d08f65084e14d4d30bfa512dd49767 (patch) | |
tree | 2ff300f2e66bf50e2dbd3bc0df842f02c76c776d /src/libcharon/plugins/ha | |
parent | 4f9c691adbb0763d59b3f58f5bbd3dbb36748a76 (diff) | |
download | strongswan-4bbce1ef37d08f65084e14d4d30bfa512dd49767.tar.bz2 strongswan-4bbce1ef37d08f65084e14d4d30bfa512dd49767.tar.xz |
Replaced ike_sa_t.create_child_sa_iterator with enumerator.
This required two new methods on ike_sa_t. One returns the number of
CHILD_SAs and one allows to remove a CHILD_SA.
Diffstat (limited to 'src/libcharon/plugins/ha')
-rw-r--r-- | src/libcharon/plugins/ha/ha_cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcharon/plugins/ha/ha_cache.c b/src/libcharon/plugins/ha/ha_cache.c index b6525a8f8..a7ddc28cc 100644 --- a/src/libcharon/plugins/ha/ha_cache.c +++ b/src/libcharon/plugins/ha/ha_cache.c @@ -196,12 +196,12 @@ METHOD(ha_cache_t, delete_, void, */ static status_t rekey_children(ike_sa_t *ike_sa) { - iterator_t *iterator; + enumerator_t *enumerator; child_sa_t *child_sa; status_t status = SUCCESS; - iterator = ike_sa->create_child_sa_iterator(ike_sa); - while (iterator->iterate(iterator, (void**)&child_sa)) + enumerator = ike_sa->create_child_sa_enumerator(ike_sa); + while (enumerator->enumerate(enumerator, (void**)&child_sa)) { DBG1(DBG_CFG, "resyncing CHILD_SA"); status = ike_sa->rekey_child_sa(ike_sa, child_sa->get_protocol(child_sa), @@ -211,7 +211,7 @@ static status_t rekey_children(ike_sa_t *ike_sa) break; } } - iterator->destroy(iterator); + enumerator->destroy(enumerator); return status; } |