Use standard unsigned integer types
This commit is contained in:
1 parent
b210369314
commit
b12c53ce77
584 files changed
+3430
-3430
No files matched your search
@@ -117,7 +117,7 @@ static job_requeue_t rekey_child(char *config)
|
||||
enumerator_t *enumerator, *children;
|
||||
ike_sa_t *ike_sa;
|
||||
child_sa_t *child_sa;
|
||||
u_int32_t spi, proto;
|
||||
uint32_t spi, proto;
|
||||
host_t *dst = NULL;
|
||||
|
||||
enumerator = charon->controller->create_ike_sa_enumerator(
|
||||
|
||||
@@ -146,7 +146,7 @@ static child_cfg_t *load_child_config(private_config_t *this,
|
||||
traffic_selector_t *ts;
|
||||
ipsec_mode_t mode = MODE_TUNNEL;
|
||||
char *token;
|
||||
u_int32_t tfc;
|
||||
uint32_t tfc;
|
||||
|
||||
if (settings->get_bool(settings, "configs.%s.%s.transport",
|
||||
FALSE, config, child))
|
||||
|
||||
@@ -52,7 +52,7 @@ struct private_custom_proposal_t {
|
||||
* Load custom proposal configuration to proposal list
|
||||
*/
|
||||
static linked_list_t* load_proposals(private_custom_proposal_t *this,
|
||||
protocol_id_t proto, u_int64_t spi)
|
||||
protocol_id_t proto, uint64_t spi)
|
||||
{
|
||||
enumerator_t *props, *algs;
|
||||
char *number, *key, *value;
|
||||
@@ -65,7 +65,7 @@ static linked_list_t* load_proposals(private_custom_proposal_t *this,
|
||||
{
|
||||
const proposal_token_t *token = NULL;
|
||||
proposal_t *proposal;
|
||||
u_int16_t type, alg, keysize = 0;
|
||||
uint16_t type, alg, keysize = 0;
|
||||
char *end;
|
||||
|
||||
proposal = proposal_create(proto, atoi(number));
|
||||
|
||||
@@ -54,7 +54,7 @@ METHOD(listener_t, message, bool,
|
||||
proposals = list->create_enumerator(list);
|
||||
while (proposals->enumerate(proposals, &proposal))
|
||||
{
|
||||
u_int64_t spi = proposal->get_spi(proposal);
|
||||
uint64_t spi = proposal->get_spi(proposal);
|
||||
|
||||
if (proposal->get_protocol(proposal) != PROTO_IKE)
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ static bool rebuild_auth(private_rebuild_auth_t *this, ike_sa_t *ike_sa,
|
||||
char reserved[3];
|
||||
generator_t *generator;
|
||||
chunk_t data;
|
||||
u_int32_t *lenpos;
|
||||
uint32_t *lenpos;
|
||||
|
||||
payload = message->get_payload(message,
|
||||
message->get_request(message) ? PLV2_ID_INITIATOR : PLV2_ID_RESPONDER);
|
||||
|
||||
@@ -154,7 +154,7 @@ static job_requeue_t reset_cb(struct reset_cb_data_t *data)
|
||||
* Schedule sequence number reset job
|
||||
*/
|
||||
static void schedule_reset_job(private_reset_seq_t *this, host_t *dst,
|
||||
u_int32_t spi)
|
||||
uint32_t spi)
|
||||
{
|
||||
struct reset_cb_data_t *data;
|
||||
chunk_t chunk;
|
||||
|
||||
@@ -42,12 +42,12 @@ struct private_set_ike_spi_t {
|
||||
/**
|
||||
* Initiator SPI
|
||||
*/
|
||||
u_int64_t spii;
|
||||
uint64_t spii;
|
||||
|
||||
/**
|
||||
* Responder SPI
|
||||
*/
|
||||
u_int64_t spir;
|
||||
uint64_t spir;
|
||||
};
|
||||
|
||||
METHOD(listener_t, message, bool,
|
||||
|
||||
@@ -75,7 +75,7 @@ METHOD(listener_t, message, bool,
|
||||
if (type == payload->get_type(payload))
|
||||
{
|
||||
encoding_rule_t *rules;
|
||||
u_int16_t *len;
|
||||
uint16_t *len;
|
||||
int i, count;
|
||||
|
||||
count = payload->get_encoding_rules(payload, &rules);
|
||||
@@ -83,7 +83,7 @@ METHOD(listener_t, message, bool,
|
||||
{
|
||||
if (rules[i].type == PAYLOAD_LENGTH)
|
||||
{
|
||||
len = (u_int16_t*)(((void*)payload) + rules[i].offset);
|
||||
len = (uint16_t*)(((void*)payload) + rules[i].offset);
|
||||
DBG1(DBG_CFG, "adjusting length of %N payload "
|
||||
"from %d to %d", payload_type_short_names, type,
|
||||
*len, *len + this->diff);
|
||||
|
||||
@@ -57,7 +57,7 @@ static void copy_proposal_algs(proposal_t *from, proposal_t *to,
|
||||
transform_type_t type)
|
||||
{
|
||||
enumerator_t *enumerator;
|
||||
u_int16_t alg, key_size;
|
||||
uint16_t alg, key_size;
|
||||
|
||||
enumerator = from->create_enumerator(from, type);
|
||||
while (enumerator->enumerate(enumerator, &alg, &key_size))
|
||||
|
||||
@@ -85,11 +85,11 @@ static void set_bit(private_set_reserved_t *this, message_t *message,
|
||||
* Set reserved byte of a payload
|
||||
*/
|
||||
static void set_byte(private_set_reserved_t *this, message_t *message,
|
||||
payload_type_t type, u_int nr, u_int8_t byteval)
|
||||
payload_type_t type, u_int nr, uint8_t byteval)
|
||||
{
|
||||
enumerator_t *payloads;
|
||||
payload_t *payload;
|
||||
u_int8_t *byte;
|
||||
uint8_t *byte;
|
||||
|
||||
if (type == PLV2_TRANSFORM_SUBSTRUCTURE || type == PLV2_PROPOSAL_SUBSTRUCTURE)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ METHOD(listener_t, message, bool,
|
||||
enumerator_t *bits, *bytes, *types;
|
||||
payload_type_t type;
|
||||
char *nr, *name;
|
||||
u_int8_t byteval;
|
||||
uint8_t byteval;
|
||||
|
||||
types = conftest->test->create_section_enumerator(conftest->test,
|
||||
"hooks.%s", this->name);
|
||||
|
||||
Reference in new issue
Block a user