- comments
This commit is contained in:
@@ -61,9 +61,24 @@ struct private_ike_auth_requested_t {
|
|||||||
*/
|
*/
|
||||||
logger_t *logger;
|
logger_t *logger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* process the IDr payload (check if other id is valid)
|
||||||
|
*/
|
||||||
status_t (*process_idr_payload) (private_ike_auth_requested_t *this, id_payload_t *idr_payload);
|
status_t (*process_idr_payload) (private_ike_auth_requested_t *this, id_payload_t *idr_payload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* process the SA payload (check if selected proposals are valid, setup child sa)
|
||||||
|
*/
|
||||||
status_t (*process_sa_payload) (private_ike_auth_requested_t *this, sa_payload_t *sa_payload);
|
status_t (*process_sa_payload) (private_ike_auth_requested_t *this, sa_payload_t *sa_payload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* process the AUTH payload (check authenticity of message)
|
||||||
|
*/
|
||||||
status_t (*process_auth_payload) (private_ike_auth_requested_t *this, auth_payload_t *auth_payload);
|
status_t (*process_auth_payload) (private_ike_auth_requested_t *this, auth_payload_t *auth_payload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* process the TS payload (check if selected traffic selectors are valid)
|
||||||
|
*/
|
||||||
status_t (*process_ts_payload) (private_ike_auth_requested_t *this, bool ts_initiator, ts_payload_t *ts_payload);
|
status_t (*process_ts_payload) (private_ike_auth_requested_t *this, bool ts_initiator, ts_payload_t *ts_payload);
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -161,7 +176,7 @@ static status_t process_message(private_ike_auth_requested_t *this, message_t *r
|
|||||||
/* iterator can be destroyed */
|
/* iterator can be destroyed */
|
||||||
payloads->destroy(payloads);
|
payloads->destroy(payloads);
|
||||||
|
|
||||||
/* add payloads to it */
|
/* process all payloads */
|
||||||
status = this->process_idr_payload(this, idr_payload);
|
status = this->process_idr_payload(this, idr_payload);
|
||||||
if (status != SUCCESS)
|
if (status != SUCCESS)
|
||||||
{
|
{
|
||||||
@@ -204,7 +219,7 @@ static status_t process_message(private_ike_auth_requested_t *this, message_t *r
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements private_ike_auth_requested_t.build_idr_payload
|
* Implements private_ike_auth_requested_t.process_idr_payload
|
||||||
*/
|
*/
|
||||||
static status_t process_idr_payload(private_ike_auth_requested_t *this, id_payload_t *idr_payload)
|
static status_t process_idr_payload(private_ike_auth_requested_t *this, id_payload_t *idr_payload)
|
||||||
{
|
{
|
||||||
@@ -232,7 +247,7 @@ static status_t process_idr_payload(private_ike_auth_requested_t *this, id_paylo
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements private_ike_auth_requested_t.build_sa_payload
|
* Implements private_ike_auth_requested_t.process_sa_payload
|
||||||
*/
|
*/
|
||||||
static status_t process_sa_payload(private_ike_auth_requested_t *this, sa_payload_t *sa_payload)
|
static status_t process_sa_payload(private_ike_auth_requested_t *this, sa_payload_t *sa_payload)
|
||||||
{
|
{
|
||||||
@@ -276,7 +291,7 @@ static status_t process_sa_payload(private_ike_auth_requested_t *this, sa_payloa
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements private_ike_auth_requested_t.build_auth_payload
|
* Implements private_ike_auth_requested_t.process_auth_payload
|
||||||
*/
|
*/
|
||||||
static status_t process_auth_payload(private_ike_auth_requested_t *this, auth_payload_t *auth_payload)
|
static status_t process_auth_payload(private_ike_auth_requested_t *this, auth_payload_t *auth_payload)
|
||||||
{
|
{
|
||||||
@@ -285,7 +300,7 @@ static status_t process_auth_payload(private_ike_auth_requested_t *this, auth_pa
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements private_ike_auth_requested_t.build_ts_payload
|
* Implements private_ike_auth_requested_t.process_ts_payload
|
||||||
*/
|
*/
|
||||||
static status_t process_ts_payload(private_ike_auth_requested_t *this, bool ts_initiator, ts_payload_t *ts_payload)
|
static status_t process_ts_payload(private_ike_auth_requested_t *this, bool ts_initiator, ts_payload_t *ts_payload)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,6 +32,10 @@ typedef struct ike_auth_requested_t ike_auth_requested_t;
|
|||||||
/**
|
/**
|
||||||
* @brief This class represents an IKE_SA, which has requested an IKE_AUTH.
|
* @brief This class represents an IKE_SA, which has requested an IKE_AUTH.
|
||||||
*
|
*
|
||||||
|
* The state accpets IKE_AUTH responses. It proves the authenticity
|
||||||
|
* and sets up the first child sa. After that, it processes to the
|
||||||
|
* IKE_SA_ESTABLISHED state.
|
||||||
|
*
|
||||||
* @ingroup states
|
* @ingroup states
|
||||||
*/
|
*/
|
||||||
struct ike_auth_requested_t {
|
struct ike_auth_requested_t {
|
||||||
|
|||||||
@@ -32,6 +32,10 @@ typedef struct ike_sa_init_responded_t ike_sa_init_responded_t;
|
|||||||
* @brief This class represents an IKE_SA state when
|
* @brief This class represents an IKE_SA state when
|
||||||
* responded to an IKE_SA_INIT request.
|
* responded to an IKE_SA_INIT request.
|
||||||
*
|
*
|
||||||
|
* The state accpets IKE_AUTH requests. It proves the authenticity
|
||||||
|
* and sets up the first child sa. Then it sends back an IKE_AUTH
|
||||||
|
* reply and processes to the IKE_SA_ESTABLISHED state.
|
||||||
|
*
|
||||||
* @ingroup states
|
* @ingroup states
|
||||||
*/
|
*/
|
||||||
struct ike_sa_init_responded_t {
|
struct ike_sa_init_responded_t {
|
||||||
|
|||||||
Reference in New Issue
Block a user