replaces four spaces by tabs, where appropriate
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user