ike_response_parse.h File Reference

IKE response parsing. More...

#include "ike/ike.h"
#include "ike/ike_payload_parse.h"

Go to the source code of this file.

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.

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

Definition in file ike_response_parse.h.

Function Documentation

◆ ikeParseCreateChildSaResponse()

error_t ikeParseCreateChildSaResponse ( IkeSaEntry *  sa,
const uint8_t *  message,
size_t  length 
)

Parse incoming CREATE_CHILD_SA response.

Parameters
[in]saPointer to the IKE SA
[in]messagePointer to the received IKE message
[in]lengthLength 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]saPointer to the IKE SA
[in]messagePointer to the received IKE message
[in]lengthLength 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]saPointer to the IKE SA
[in]messagePointer to the received IKE message
[in]lengthLength 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]saPointer to the IKE SA
[in]messagePointer to the received IKE message
[in]lengthLength 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]saPointer to the IKE SA
[in]payloadsPointer 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]saPointer to the IKE SA
[in]payloadsPointer 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]saPointer to the IKE SA
[in]payloadsPointer 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]saPointer to the IKE SA
[in]payloadsPointer to the IKE message payloads
Returns
Error code

Definition at line 699 of file ike_response_parse.c.