IKE request formatting. More...
#include "ike/ike.h"#include "ike/ike_fsm.h"#include "ike/ike_message_encrypt.h"#include "ike/ike_request_format.h"#include "ike/ike_payload_format.h"#include "ike/ike_key_exchange.h"#include "ike/ike_key_material.h"#include "ike/ike_misc.h"#include "ike/ike_debug.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL IKE_TRACE_LEVEL |
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.
- Version
- 2.6.6
Definition in file ike_request_format.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL IKE_TRACE_LEVEL |
Definition at line 32 of file ike_request_format.c.
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] sa Pointer to the IKE SA [out] p Buffer where to format the payloads [out] length Length of the resulting payloads, in bytes [in,out] nextPayload Pointer 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] sa Pointer to the IKE SA [out] p Buffer where to format the message [out] length Length 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] sa Pointer to the IKE SA [out] p Buffer where to format the message [out] length Length 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] sa Pointer to the IKE SA [out] p Buffer where to format the message [out] length Length 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] sa Pointer to the IKE SA [out] p Buffer where to format the payloads [out] length Length of the resulting payloads, in bytes [in,out] nextPayload Pointer 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] sa Pointer to the IKE SA [out] p Buffer where to format the message [out] length Length 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] sa Pointer 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] sa Pointer 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] sa Pointer 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] sa Pointer 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] sa Pointer 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] sa Pointer to the IKE SA
- Returns
- Error code
Definition at line 56 of file ike_request_format.c.
