Extended KE payload for IKEv1 support
This commit is contained in:
@@ -547,7 +547,8 @@ static void build_payloads(private_child_create_t *this, message_t *message)
|
||||
/* diffie hellman exchange, if PFS enabled */
|
||||
if (this->dh)
|
||||
{
|
||||
ke_payload = ke_payload_create_from_diffie_hellman(this->dh);
|
||||
ke_payload = ke_payload_create_from_diffie_hellman(KEY_EXCHANGE,
|
||||
this->dh);
|
||||
message->add_payload(message, (payload_t*)ke_payload);
|
||||
}
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ static void build_payloads(private_ike_init_t *this, message_t *message)
|
||||
|
||||
nonce_payload = nonce_payload_create(NONCE);
|
||||
nonce_payload->set_nonce(nonce_payload, this->my_nonce);
|
||||
ke_payload = ke_payload_create_from_diffie_hellman(this->dh);
|
||||
ke_payload = ke_payload_create_from_diffie_hellman(KEY_EXCHANGE, this->dh);
|
||||
|
||||
if (this->old_sa)
|
||||
{ /* payload order differs if we are rekeying */
|
||||
|
||||
Reference in New Issue
Block a user