implemented ike_rekey()/child_rekey() bus hooks
This commit is contained in:
@@ -207,6 +207,10 @@ static status_t build_r(private_child_rekey_t *this, message_t *message)
|
||||
}
|
||||
|
||||
this->child_sa->set_state(this->child_sa, CHILD_REKEYING);
|
||||
|
||||
/* invoke rekey hook */
|
||||
charon->bus->child_rekey(charon->bus, this->child_sa,
|
||||
this->child_create->get_child(this->child_create));
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
@@ -303,6 +307,12 @@ static status_t process_i(private_child_rekey_t *this, message_t *message)
|
||||
}
|
||||
}
|
||||
|
||||
if (to_delete != this->child_create->get_child(this->child_create))
|
||||
{ /* invoke rekey hook if rekeying successful */
|
||||
charon->bus->child_rekey(charon->bus, this->child_sa,
|
||||
this->child_create->get_child(this->child_create));
|
||||
}
|
||||
|
||||
spi = to_delete->get_spi(to_delete, TRUE);
|
||||
protocol = to_delete->get_protocol(to_delete);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user