IKE message parsing. More...
#include "ike/ike.h"
Go to the source code of this file.
Functions | |
error_t | ikeProcessMessage (IkeContext *context, uint8_t *message, size_t length) |
Process incoming IKE message. More... | |
error_t | ikeProcessRequest (IkeContext *context, uint8_t *message, size_t length) |
Process incoming IKE request. More... | |
error_t | ikeProcessResponse (IkeContext *context, uint8_t *message, size_t length) |
Process incoming IKE response. More... | |
error_t | ikeProcessIkeSaInitRequest (IkeContext *context, const uint8_t *message, size_t length) |
Process incoming IKE_SA_INIT request. More... | |
error_t | ikeProcessIkeSaInitResponse (IkeSaEntry *sa, const uint8_t *message, size_t length) |
Process incoming IKE_SA_INIT response. More... | |
error_t | ikeProcessIkeAuthRequest (IkeSaEntry *sa, const uint8_t *message, size_t length) |
Process incoming IKE_AUTH request. More... | |
error_t | ikeProcessIkeAuthResponse (IkeSaEntry *sa, const uint8_t *message, size_t length) |
Process incoming IKE_AUTH response. More... | |
error_t | ikeProcessCreateChildSaRequest (IkeSaEntry *sa, const uint8_t *message, size_t length) |
Process incoming CREATE_CHILD_SA request. More... | |
error_t | ikeProcessCreateChildSaResponse (IkeSaEntry *sa, const uint8_t *message, size_t length) |
Process incoming CREATE_CHILD_SA response. More... | |
error_t | ikeProcessInformationalRequest (IkeSaEntry *sa, const uint8_t *message, size_t length) |
Process incoming INFORMATIONAL request. More... | |
error_t | ikeProcessInformationalResponse (IkeSaEntry *sa, const uint8_t *message, size_t length) |
Process incoming INFORMATIONAL response. More... | |
Detailed Description
IKE message parsing.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2022-2024 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.4.4
Definition in file ike_message_parse.h.
Function Documentation
◆ ikeProcessCreateChildSaRequest()
error_t ikeProcessCreateChildSaRequest | ( | IkeSaEntry * | sa, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Process incoming CREATE_CHILD_SA request.
- 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 1516 of file ike_message_parse.c.
◆ ikeProcessCreateChildSaResponse()
error_t ikeProcessCreateChildSaResponse | ( | IkeSaEntry * | sa, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Process 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 1542 of file ike_message_parse.c.
◆ ikeProcessIkeAuthRequest()
error_t ikeProcessIkeAuthRequest | ( | IkeSaEntry * | sa, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Process incoming IKE_AUTH request.
- 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 938 of file ike_message_parse.c.
◆ ikeProcessIkeAuthResponse()
error_t ikeProcessIkeAuthResponse | ( | IkeSaEntry * | sa, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Process 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 1218 of file ike_message_parse.c.
◆ ikeProcessIkeSaInitRequest()
error_t ikeProcessIkeSaInitRequest | ( | IkeContext * | context, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Process incoming IKE_SA_INIT request.
- Parameters
-
[in] context Pointer to the IKE context [in] message Pointer to the received IKE message [in] length Length of the IKE message, in bytes
- Returns
- Error code
Definition at line 393 of file ike_message_parse.c.
◆ ikeProcessIkeSaInitResponse()
error_t ikeProcessIkeSaInitResponse | ( | IkeSaEntry * | sa, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Process 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 703 of file ike_message_parse.c.
◆ ikeProcessInformationalRequest()
error_t ikeProcessInformationalRequest | ( | IkeSaEntry * | sa, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Process incoming INFORMATIONAL request.
- 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 1559 of file ike_message_parse.c.
◆ ikeProcessInformationalResponse()
error_t ikeProcessInformationalResponse | ( | IkeSaEntry * | sa, |
const uint8_t * | message, | ||
size_t | length | ||
) |
Process 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 1662 of file ike_message_parse.c.
◆ ikeProcessMessage()
error_t ikeProcessMessage | ( | IkeContext * | context, |
uint8_t * | message, | ||
size_t | length | ||
) |
Process incoming IKE message.
- Parameters
-
[in] context Pointer to the IKE context [in] message Pointer to the received IKE message [in] length Length of the IKE message, in bytes
- Returns
- Error code
Definition at line 66 of file ike_message_parse.c.
◆ ikeProcessRequest()
error_t ikeProcessRequest | ( | IkeContext * | context, |
uint8_t * | message, | ||
size_t | length | ||
) |
Process incoming IKE request.
- Parameters
-
[in] context Pointer to the IKE context [in] message Pointer to the received IKE message [in] length Length of the IKE message, in bytes
- Returns
- Error code
Definition at line 115 of file ike_message_parse.c.
◆ ikeProcessResponse()
error_t ikeProcessResponse | ( | IkeContext * | context, |
uint8_t * | message, | ||
size_t | length | ||
) |
Process incoming IKE response.
- Parameters
-
[in] context Pointer to the IKE context [in] message Pointer to the received IKE message [in] length Length of the IKE message, in bytes
- Returns
- Error code
Definition at line 263 of file ike_message_parse.c.