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.
This commit is contained in:
@@ -576,7 +576,7 @@ METHOD(stroke_list_t, status, void,
|
||||
while (enumerator->enumerate(enumerator, &ike_sa))
|
||||
{
|
||||
bool ike_printed = FALSE;
|
||||
iterator_t *children = ike_sa->create_child_sa_iterator(ike_sa);
|
||||
enumerator_t *children = ike_sa->create_child_sa_enumerator(ike_sa);
|
||||
|
||||
if (name == NULL || streq(name, ike_sa->get_name(ike_sa)))
|
||||
{
|
||||
@@ -585,7 +585,7 @@ METHOD(stroke_list_t, status, void,
|
||||
ike_printed = TRUE;
|
||||
}
|
||||
|
||||
while (children->iterate(children, (void**)&child_sa))
|
||||
while (children->enumerate(children, (void**)&child_sa))
|
||||
{
|
||||
if (name == NULL || streq(name, child_sa->get_name(child_sa)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user