IKE response parsing. More...
#include "ipsec/ipsec_misc.h"#include "ike/ike.h"#include "ike/ike_fsm.h"#include "ike/ike_algorithms.h"#include "ike/ike_request_format.h"#include "ike/ike_response_parse.h"#include "ike/ike_payload_parse.h"#include "ike/ike_auth.h"#include "ike/ike_certificate.h"#include "ike/ike_key_exchange.h"#include "ike/ike_key_material.h"#include "ike/ike_misc.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL IKE_TRACE_LEVEL |
Functions | |
| error_t | ikeParseIkeSaInitResponse (IkeSaEntry *sa, const uint8_t *message, size_t length) |
| Parse incoming IKE_SA_INIT response. More... | |
| error_t | ikeParseIkeAuthResponse (IkeSaEntry *sa, const uint8_t *message, size_t length) |
| Parse incoming IKE_AUTH response. More... | |
| error_t | ikeParseCreateChildSaResponse (IkeSaEntry *sa, const uint8_t *message, size_t length) |
| Parse incoming CREATE_CHILD_SA response. More... | |
| error_t | ikeParseInfoResponse (IkeSaEntry *sa, const uint8_t *message, size_t length) |
| Parse incoming INFORMATIONAL response. More... | |
| error_t | ikeProcessInitialChildSaCreateResponse (IkeSaEntry *sa, IkeMessagePayloads *payloads) |
| Process initial Child SA creation response. More... | |
| error_t | ikeProcessChildSaCreateResponse (IkeSaEntry *sa, IkeMessagePayloads *payloads) |
| Process Child SA creation response. More... | |
| error_t | ikeProcessChildSaRekeyResponse (IkeSaEntry *sa, IkeMessagePayloads *payloads) |
| Process Child SA rekeying response. More... | |
| error_t | ikeProcessIkeSaRekeyResponse (IkeSaEntry *sa, IkeMessagePayloads *payloads) |
| Process IKE SA rekeying response. More... | |
Detailed Description
IKE response parsing.
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_response_parse.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL IKE_TRACE_LEVEL |
Definition at line 32 of file ike_response_parse.c.
Function Documentation
◆ ikeParseCreateChildSaResponse()
| error_t ikeParseCreateChildSaResponse | ( | IkeSaEntry * | sa, |
| const uint8_t * | message, | ||
| size_t | length | ||
| ) |
Parse incoming CREATE_CHILD_SA response.
- Parameters
-
[in] sa Pointer to the IKE SA [in] message Pointer to the received IKE message [in] length Length of the IKE message, in bytes
- Returns
- Error code
Definition at line 518 of file ike_response_parse.c.
◆ ikeParseIkeAuthResponse()
| error_t ikeParseIkeAuthResponse | ( | IkeSaEntry * | sa, |
| const uint8_t * | message, | ||
| size_t | length | ||
| ) |
Parse incoming IKE_AUTH response.
- Parameters
-
[in] sa Pointer to the IKE SA [in] message Pointer to the received IKE message [in] length Length of the IKE message, in bytes
- Returns
- Error code
Definition at line 316 of file ike_response_parse.c.
◆ ikeParseIkeSaInitResponse()
| error_t ikeParseIkeSaInitResponse | ( | IkeSaEntry * | sa, |
| const uint8_t * | message, | ||
| size_t | length | ||
| ) |
Parse incoming IKE_SA_INIT response.
- Parameters
-
[in] sa Pointer to the IKE SA [in] message Pointer to the received IKE message [in] length Length of the IKE message, in bytes
- Returns
- Error code
Definition at line 61 of file ike_response_parse.c.
◆ ikeParseInfoResponse()
| error_t ikeParseInfoResponse | ( | IkeSaEntry * | sa, |
| const uint8_t * | message, | ||
| size_t | length | ||
| ) |
Parse incoming INFORMATIONAL response.
- Parameters
-
[in] sa Pointer to the IKE SA [in] message Pointer to the received IKE message [in] length Length of the IKE message, in bytes
- Returns
- Error code
Definition at line 591 of file ike_response_parse.c.
◆ ikeProcessChildSaCreateResponse()
| error_t ikeProcessChildSaCreateResponse | ( | IkeSaEntry * | sa, |
| IkeMessagePayloads * | payloads | ||
| ) |
Process Child SA creation response.
- Parameters
-
[in] sa Pointer to the IKE SA [in] payloads Pointer to the IKE message payloads
- Returns
- Error code
Definition at line 794 of file ike_response_parse.c.
◆ ikeProcessChildSaRekeyResponse()
| error_t ikeProcessChildSaRekeyResponse | ( | IkeSaEntry * | sa, |
| IkeMessagePayloads * | payloads | ||
| ) |
Process Child SA rekeying response.
- Parameters
-
[in] sa Pointer to the IKE SA [in] payloads Pointer to the IKE message payloads
- Returns
- Error code
Definition at line 1011 of file ike_response_parse.c.
◆ ikeProcessIkeSaRekeyResponse()
| error_t ikeProcessIkeSaRekeyResponse | ( | IkeSaEntry * | sa, |
| IkeMessagePayloads * | payloads | ||
| ) |
Process IKE SA rekeying response.
- Parameters
-
[in] sa Pointer to the IKE SA [in] payloads Pointer to the IKE message payloads
- Returns
- Error code
Definition at line 1261 of file ike_response_parse.c.
◆ ikeProcessInitialChildSaCreateResponse()
| error_t ikeProcessInitialChildSaCreateResponse | ( | IkeSaEntry * | sa, |
| IkeMessagePayloads * | payloads | ||
| ) |
Process initial Child SA creation response.
- Parameters
-
[in] sa Pointer to the IKE SA [in] payloads Pointer to the IKE message payloads
- Returns
- Error code
Definition at line 699 of file ike_response_parse.c.
