ike_request_format.h File Reference

IKE request formatting. More...

#include "ike/ike.h"

Go to the source code of this file.

Functions

error_t ikeSendRequest (IkeSaEntry *sa)
 Send IKE request message. More...
 
error_t ikeSendIkeSaInitRequest (IkeSaEntry *sa)
 Send IKE_SA_INIT request. More...
 
error_t ikeSendIkeAuthRequest (IkeSaEntry *sa)
 Send IKE_AUTH request. More...
 
error_t ikeSendCreateChildSaRequest (IkeSaEntry *sa)
 Send CREATE_CHILD_SA request. More...
 
error_t ikeSendInfoRequest (IkeSaEntry *sa)
 Send INFORMATIONAL request. More...
 
error_t ikeSendNatKeepalive (IkeSaEntry *sa)
 Send NAT-keepalive packet. More...
 
error_t ikeFormatIkeSaInitRequest (IkeSaEntry *sa, uint8_t *p, size_t *length)
 Format IKE_SA_INIT request. More...
 
error_t ikeFormatIkeAuthRequest (IkeSaEntry *sa, uint8_t *p, size_t *length)
 Format IKE_AUTH request. More...
 
error_t ikeFormatCreateChildSaRequest (IkeSaEntry *sa, uint8_t *p, size_t *length)
 Format CREATE_CHILD_SA request. More...
 
error_t ikeFormatInfoRequest (IkeSaEntry *sa, uint8_t *p, size_t *length)
 Format INFORMATIONAL request. More...
 
error_t ikeFormatChildSaCreateRequest (IkeSaEntry *sa, uint8_t *p, size_t *length, uint8_t **nextPayload)
 Format Child SA creation/rekeying request. More...
 
error_t ikeFormatIkeSaRekeyRequest (IkeSaEntry *sa, uint8_t *p, size_t *length, uint8_t **nextPayload)
 Format IKE SA rekeying request. More...
 

Detailed Description

IKE request formatting.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2022-2026 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneIPSEC Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.6.6

Definition in file ike_request_format.h.

Function Documentation

◆ ikeFormatChildSaCreateRequest()

error_t ikeFormatChildSaCreateRequest ( IkeSaEntry *  sa,
uint8_t *  p,
size_t *  length,
uint8_t **  nextPayload 
)

Format Child SA creation/rekeying request.

Parameters
[in]saPointer to the IKE SA
[out]pBuffer where to format the payloads
[out]lengthLength of the resulting payloads, in bytes
[in,out]nextPayloadPointer to the Next Payload field
Returns
Error code

Definition at line 882 of file ike_request_format.c.

◆ ikeFormatCreateChildSaRequest()

error_t ikeFormatCreateChildSaRequest ( IkeSaEntry *  sa,
uint8_t *  p,
size_t *  length 
)

Format CREATE_CHILD_SA request.

Parameters
[in]saPointer to the IKE SA
[out]pBuffer where to format the message
[out]lengthLength of the resulting message, in bytes
Returns
Error code

Definition at line 695 of file ike_request_format.c.

◆ ikeFormatIkeAuthRequest()

error_t ikeFormatIkeAuthRequest ( IkeSaEntry *  sa,
uint8_t *  p,
size_t *  length 
)

Format IKE_AUTH request.

Parameters
[in]saPointer to the IKE SA
[out]pBuffer where to format the message
[out]lengthLength of the resulting message, in bytes
Returns
Error code

Definition at line 568 of file ike_request_format.c.

◆ ikeFormatIkeSaInitRequest()

error_t ikeFormatIkeSaInitRequest ( IkeSaEntry *  sa,
uint8_t *  p,
size_t *  length 
)

Format IKE_SA_INIT request.

Parameters
[in]saPointer to the IKE SA
[out]pBuffer where to format the message
[out]lengthLength of the resulting message, in bytes
Returns
Error code

Definition at line 421 of file ike_request_format.c.

◆ ikeFormatIkeSaRekeyRequest()

error_t ikeFormatIkeSaRekeyRequest ( IkeSaEntry *  sa,
uint8_t *  p,
size_t *  length,
uint8_t **  nextPayload 
)

Format IKE SA rekeying request.

Parameters
[in]saPointer to the IKE SA
[out]pBuffer where to format the payloads
[out]lengthLength of the resulting payloads, in bytes
[in,out]nextPayloadPointer to the Next Payload field
Returns
Error code

Definition at line 1035 of file ike_request_format.c.

◆ ikeFormatInfoRequest()

error_t ikeFormatInfoRequest ( IkeSaEntry *  sa,
uint8_t *  p,
size_t *  length 
)

Format INFORMATIONAL request.

Parameters
[in]saPointer to the IKE SA
[out]pBuffer where to format the message
[out]lengthLength of the resulting message, in bytes
Returns
Error code

Definition at line 784 of file ike_request_format.c.

◆ ikeSendCreateChildSaRequest()

error_t ikeSendCreateChildSaRequest ( IkeSaEntry *  sa)

Send CREATE_CHILD_SA request.

Parameters
[in]saPointer to the IKE SA
Returns
Error code

Definition at line 241 of file ike_request_format.c.

◆ ikeSendIkeAuthRequest()

error_t ikeSendIkeAuthRequest ( IkeSaEntry *  sa)

Send IKE_AUTH request.

Parameters
[in]saPointer to the IKE SA
Returns
Error code

Definition at line 147 of file ike_request_format.c.

◆ ikeSendIkeSaInitRequest()

error_t ikeSendIkeSaInitRequest ( IkeSaEntry *  sa)

Send IKE_SA_INIT request.

Parameters
[in]saPointer to the IKE SA
Returns
Error code

Definition at line 103 of file ike_request_format.c.

◆ ikeSendInfoRequest()

error_t ikeSendInfoRequest ( IkeSaEntry *  sa)

Send INFORMATIONAL request.

Parameters
[in]saPointer to the IKE SA
Returns
Error code

Definition at line 311 of file ike_request_format.c.

◆ ikeSendNatKeepalive()

error_t ikeSendNatKeepalive ( IkeSaEntry *  sa)

Send NAT-keepalive packet.

Parameters
[in]saPointer to the IKE SA
Returns
Error code

Definition at line 379 of file ike_request_format.c.

◆ ikeSendRequest()

error_t ikeSendRequest ( IkeSaEntry *  sa)

Send IKE request message.

Parameters
[in]saPointer to the IKE SA
Returns
Error code

Definition at line 56 of file ike_request_format.c.