moved REKEY_SA notify to the beginning of the message
This commit is contained in:
@@ -197,19 +197,19 @@ static status_t build_i(private_child_rekey_t *this, message_t *message)
|
|||||||
protocol_id_t protocol;
|
protocol_id_t protocol;
|
||||||
u_int32_t spi, reqid;
|
u_int32_t spi, reqid;
|
||||||
|
|
||||||
/* our CHILD_CREATE task does the hard work for us... */
|
/* we just need the rekey notify ... */
|
||||||
reqid = this->child_sa->get_reqid(this->child_sa);
|
|
||||||
this->child_create->use_reqid(this->child_create, reqid);
|
|
||||||
this->child_create->task.build(&this->child_create->task, message);
|
|
||||||
get_nonce(this, message);
|
|
||||||
|
|
||||||
/* ... we just need the rekey notify */
|
|
||||||
protocol = this->child_sa->get_protocol(this->child_sa);
|
protocol = this->child_sa->get_protocol(this->child_sa);
|
||||||
spi = this->child_sa->get_spi(this->child_sa, TRUE);
|
spi = this->child_sa->get_spi(this->child_sa, TRUE);
|
||||||
notify = notify_payload_create_from_protocol_and_type(protocol, REKEY_SA);
|
notify = notify_payload_create_from_protocol_and_type(protocol, REKEY_SA);
|
||||||
notify->set_spi(notify, spi);
|
notify->set_spi(notify, spi);
|
||||||
message->add_payload(message, (payload_t*)notify);
|
message->add_payload(message, (payload_t*)notify);
|
||||||
|
|
||||||
|
/* ... our CHILD_CREATE task does the hard work for us. */
|
||||||
|
reqid = this->child_sa->get_reqid(this->child_sa);
|
||||||
|
this->child_create->use_reqid(this->child_create, reqid);
|
||||||
|
this->child_create->task.build(&this->child_create->task, message);
|
||||||
|
get_nonce(this, message);
|
||||||
|
|
||||||
this->child_sa->set_state(this->child_sa, CHILD_REKEYING);
|
this->child_sa->set_state(this->child_sa, CHILD_REKEYING);
|
||||||
|
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
|
|||||||
Reference in New Issue
Block a user