- added compution of secrets
This commit is contained in:
@@ -335,6 +335,15 @@ static status_t process_message(private_responder_init_t *this, message_t *messa
|
|||||||
return OUT_OF_RES;
|
return OUT_OF_RES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
status = this->ike_sa->compute_secrets(this->ike_sa,shared_secret,this->received_nonce, this->sent_nonce);
|
||||||
|
if (status != SUCCESS)
|
||||||
|
{
|
||||||
|
/* secrets could not be computed */
|
||||||
|
this->logger->log(this->logger, ERROR | MORE, "Secrets could not be computed!");
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* set up the reply */
|
/* set up the reply */
|
||||||
status = this->ike_sa->build_message(this->ike_sa, IKE_SA_INIT, FALSE, &response);
|
status = this->ike_sa->build_message(this->ike_sa, IKE_SA_INIT, FALSE, &response);
|
||||||
|
|||||||
Reference in New Issue
Block a user