diff options
author | Martin Willi <martin@strongswan.org> | 2005-12-02 14:11:32 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-12-02 14:11:32 +0000 |
commit | 016dfc72535275bf9af60f488926dd04a0c8a9d5 (patch) | |
tree | 937526f24082f95b5e2809399bcd6dce9975c931 /Source/charon | |
parent | 0df63d6be4e383c6adb265e3ff05fda769b8f11f (diff) | |
download | strongswan-016dfc72535275bf9af60f488926dd04a0c8a9d5.tar.bz2 strongswan-016dfc72535275bf9af60f488926dd04a0c8a9d5.tar.xz |
- comments
Diffstat (limited to 'Source/charon')
-rw-r--r-- | Source/charon/sa/states/ike_auth_requested.c | 25 | ||||
-rw-r--r-- | Source/charon/sa/states/ike_auth_requested.h | 4 | ||||
-rw-r--r-- | Source/charon/sa/states/ike_sa_init_responded.h | 4 |
3 files changed, 28 insertions, 5 deletions
diff --git a/Source/charon/sa/states/ike_auth_requested.c b/Source/charon/sa/states/ike_auth_requested.c index 9fe7b1b9f..64881cc85 100644 --- a/Source/charon/sa/states/ike_auth_requested.c +++ b/Source/charon/sa/states/ike_auth_requested.c @@ -61,9 +61,24 @@ struct private_ike_auth_requested_t { */ 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); + + /** + * 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); + + /** + * process the AUTH payload (check authenticity of message) + */ 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); }; @@ -161,7 +176,7 @@ static status_t process_message(private_ike_auth_requested_t *this, message_t *r /* iterator can be destroyed */ payloads->destroy(payloads); - /* add payloads to it */ + /* process all payloads */ status = this->process_idr_payload(this, idr_payload); 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) { @@ -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) { @@ -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) { @@ -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) { diff --git a/Source/charon/sa/states/ike_auth_requested.h b/Source/charon/sa/states/ike_auth_requested.h index 5b3512657..ac2c4bade 100644 --- a/Source/charon/sa/states/ike_auth_requested.h +++ b/Source/charon/sa/states/ike_auth_requested.h @@ -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. * + * 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 */ struct ike_auth_requested_t { diff --git a/Source/charon/sa/states/ike_sa_init_responded.h b/Source/charon/sa/states/ike_sa_init_responded.h index e65c4e5e5..1e7dd030a 100644 --- a/Source/charon/sa/states/ike_sa_init_responded.h +++ b/Source/charon/sa/states/ike_sa_init_responded.h @@ -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 * 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 */ struct ike_sa_init_responded_t { |