child-sa: Add a new state to track rekeyed IKEv1 CHILD_SAs
This is needed to handle DELETEs properly, which was previously done via
CHILD_REKEYING, which we don't use anymore since 5c6a62ceb6 as it prevents
reauthentication.
This commit is contained in:
@@ -323,7 +323,8 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
|
||||
|
||||
}
|
||||
}
|
||||
else if (child_sa->get_state(child_sa) == CHILD_REKEYING)
|
||||
else if (child_sa->get_state(child_sa) == CHILD_REKEYING ||
|
||||
child_sa->get_state(child_sa) == CHILD_REKEYED)
|
||||
{
|
||||
rekey = child_sa->get_lifetime(child_sa, TRUE);
|
||||
fprintf(out, ", expires in %V", &now, &rekey);
|
||||
|
||||
Reference in New Issue
Block a user