diff options
Diffstat (limited to 'src/charon/sa')
-rw-r--r-- | src/charon/sa/authenticators/eap/eap_manager.h | 6 | ||||
-rw-r--r-- | src/charon/sa/child_sa.c | 2 | ||||
-rw-r--r-- | src/charon/sa/connect_manager.c | 52 | ||||
-rw-r--r-- | src/charon/sa/mediation_manager.c | 16 |
4 files changed, 38 insertions, 38 deletions
diff --git a/src/charon/sa/authenticators/eap/eap_manager.h b/src/charon/sa/authenticators/eap/eap_manager.h index 271bfc2bf..0333fb6da 100644 --- a/src/charon/sa/authenticators/eap/eap_manager.h +++ b/src/charon/sa/authenticators/eap/eap_manager.h @@ -69,9 +69,9 @@ struct eap_manager_t { identification_t *peer); /** - * Destroy a eap_manager instance. - */ - void (*destroy)(eap_manager_t *this); + * Destroy a eap_manager instance. + */ + void (*destroy)(eap_manager_t *this); }; /** diff --git a/src/charon/sa/child_sa.c b/src/charon/sa/child_sa.c index 1ea1befa2..8eefe39db 100644 --- a/src/charon/sa/child_sa.c +++ b/src/charon/sa/child_sa.c @@ -937,7 +937,7 @@ child_sa_t * child_sa_create(host_t *me, host_t* other, /* MIPv6 proxy transport mode sets SA endpoints to TS hosts */ if (config->get_mode(config) == MODE_TRANSPORT && - config->use_proxy_mode(config)) + config->use_proxy_mode(config)) { ts_type_t type; int family; diff --git a/src/charon/sa/connect_manager.c b/src/charon/sa/connect_manager.c index 75a3242fc..8df1824ac 100644 --- a/src/charon/sa/connect_manager.c +++ b/src/charon/sa/connect_manager.c @@ -98,19 +98,19 @@ struct endpoint_pair_t { u_int64_t priority; /** local endpoint */ - host_t *local; + host_t *local; - /** remote endpoint */ - host_t *remote; + /** remote endpoint */ + host_t *remote; - /** state */ - check_state_t state; + /** state */ + check_state_t state; - /** number of retransmissions */ - u_int32_t retransmitted; + /** number of retransmissions */ + u_int32_t retransmitted; - /** the generated packet */ - packet_t *packet; + /** the generated packet */ + packet_t *packet; }; /** @@ -119,8 +119,8 @@ struct endpoint_pair_t { static void endpoint_pair_destroy(endpoint_pair_t *this) { DESTROY_IF(this->local); - DESTROY_IF(this->remote); - DESTROY_IF(this->packet); + DESTROY_IF(this->remote); + DESTROY_IF(this->packet); free(this); } @@ -183,16 +183,16 @@ struct check_list_t { /** connect id */ chunk_t connect_id; - /** list of endpoint pairs */ - linked_list_t *pairs; + /** list of endpoint pairs */ + linked_list_t *pairs; - /** pairs queued for triggered checks */ - linked_list_t *triggered; + /** pairs queued for triggered checks */ + linked_list_t *triggered; - /** state */ - check_state_t state; + /** state */ + check_state_t state; - /** TRUE if this is the initiator */ + /** TRUE if this is the initiator */ bool is_initiator; /** TRUE if the initiator is finishing the checks */ @@ -242,13 +242,13 @@ static check_list_t *check_list_create(identification_t *initiator, identificati this->responder.id = responder->clone(responder); this->responder.key = chunk_empty; - this->responder.endpoints = NULL; + this->responder.endpoints = NULL; - this->pairs = linked_list_create(); - this->triggered = linked_list_create(); - this->state = CHECK_NONE; - this->is_initiator = is_initiator; - this->is_finishing = FALSE; + this->pairs = linked_list_create(); + this->triggered = linked_list_create(); + this->state = CHECK_NONE; + this->is_initiator = is_initiator; + this->is_finishing = FALSE; return this; } @@ -319,8 +319,8 @@ struct check_t { /** raw endpoint payload (to verify the signature) */ chunk_t endpoint_raw; - /** connect auth */ - chunk_t auth; + /** connect auth */ + chunk_t auth; }; /** diff --git a/src/charon/sa/mediation_manager.c b/src/charon/sa/mediation_manager.c index b91a66163..89ff8c9bd 100644 --- a/src/charon/sa/mediation_manager.c +++ b/src/charon/sa/mediation_manager.c @@ -28,13 +28,13 @@ typedef struct peer_t peer_t; */ struct peer_t { /** id of the peer */ - identification_t *id; + identification_t *id; /** sa id of the peer, NULL if offline */ - ike_sa_id_t *ike_sa_id; + ike_sa_id_t *ike_sa_id; - /** list of peer ids that reuested this peer */ - linked_list_t *requested_by; + /** list of peer ids that reuested this peer */ + linked_list_t *requested_by; }; /** @@ -43,8 +43,8 @@ struct peer_t { static void peer_destroy(peer_t *this) { DESTROY_IF(this->id); - DESTROY_IF(this->ike_sa_id); - this->requested_by->destroy_offset(this->requested_by, offsetof(identification_t, destroy)); + DESTROY_IF(this->ike_sa_id); + this->requested_by->destroy_offset(this->requested_by, offsetof(identification_t, destroy)); free(this); } @@ -57,8 +57,8 @@ static peer_t *peer_create(identification_t *id, ike_sa_id_t* ike_sa_id) /* clone everything */ this->id = id->clone(id); - this->ike_sa_id = ike_sa_id ? ike_sa_id->clone(ike_sa_id) : NULL; - this->requested_by = linked_list_create(); + this->ike_sa_id = ike_sa_id ? ike_sa_id->clone(ike_sa_id) : NULL; + this->requested_by = linked_list_create(); return this; } |