Use standard unsigned integer types
This commit is contained in:
@@ -35,7 +35,7 @@ struct eap_entry_t {
|
||||
/**
|
||||
* vendor ID, 0 for default EAP methods
|
||||
*/
|
||||
u_int32_t vendor;
|
||||
uint32_t vendor;
|
||||
|
||||
/**
|
||||
* Role of the method returned by the constructor, EAP_SERVER or EAP_PEER
|
||||
@@ -70,7 +70,7 @@ struct private_eap_manager_t {
|
||||
};
|
||||
|
||||
METHOD(eap_manager_t, add_method, void,
|
||||
private_eap_manager_t *this, eap_type_t type, u_int32_t vendor,
|
||||
private_eap_manager_t *this, eap_type_t type, uint32_t vendor,
|
||||
eap_role_t role, eap_constructor_t constructor)
|
||||
{
|
||||
eap_entry_t *entry = malloc_thing(eap_entry_t);
|
||||
@@ -109,7 +109,7 @@ METHOD(eap_manager_t, remove_method, void,
|
||||
* filter the registered methods
|
||||
*/
|
||||
static bool filter_methods(uintptr_t role, eap_entry_t **entry,
|
||||
eap_type_t *type, void *in, u_int32_t *vendor)
|
||||
eap_type_t *type, void *in, uint32_t *vendor)
|
||||
{
|
||||
if ((*entry)->role != (eap_role_t)role)
|
||||
{
|
||||
@@ -144,7 +144,7 @@ METHOD(eap_manager_t, create_enumerator, enumerator_t*,
|
||||
}
|
||||
|
||||
METHOD(eap_manager_t, create_instance, eap_method_t*,
|
||||
private_eap_manager_t *this, eap_type_t type, u_int32_t vendor,
|
||||
private_eap_manager_t *this, eap_type_t type, uint32_t vendor,
|
||||
eap_role_t role, identification_t *server, identification_t *peer)
|
||||
{
|
||||
enumerator_t *enumerator;
|
||||
|
||||
@@ -44,7 +44,7 @@ struct eap_manager_t {
|
||||
* @param role EAP role of the registered method
|
||||
* @param constructor constructor function, returns an eap_method_t
|
||||
*/
|
||||
void (*add_method)(eap_manager_t *this, eap_type_t type, u_int32_t vendor,
|
||||
void (*add_method)(eap_manager_t *this, eap_type_t type, uint32_t vendor,
|
||||
eap_role_t role, eap_constructor_t constructor);
|
||||
|
||||
/**
|
||||
@@ -61,7 +61,7 @@ struct eap_manager_t {
|
||||
* even though it is registered as method with this manager).
|
||||
*
|
||||
* @param role EAP role of methods to enumerate
|
||||
* @return enumerator over (eap_type_t type, u_int32_t vendor)
|
||||
* @return enumerator over (eap_type_t type, uint32_t vendor)
|
||||
*/
|
||||
enumerator_t* (*create_enumerator)(eap_manager_t *this, eap_role_t role);
|
||||
|
||||
@@ -76,7 +76,7 @@ struct eap_manager_t {
|
||||
* @return EAP method instance, NULL if no constructor found
|
||||
*/
|
||||
eap_method_t* (*create_instance)(eap_manager_t *this, eap_type_t type,
|
||||
u_int32_t vendor, eap_role_t role,
|
||||
uint32_t vendor, eap_role_t role,
|
||||
identification_t *server,
|
||||
identification_t *peer);
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ struct eap_method_t {
|
||||
* @param vendor pointer receiving vendor identifier for type, 0 for none
|
||||
* @return type of the EAP method
|
||||
*/
|
||||
eap_type_t (*get_type) (eap_method_t *this, u_int32_t *vendor);
|
||||
eap_type_t (*get_type) (eap_method_t *this, uint32_t *vendor);
|
||||
|
||||
/**
|
||||
* Check if this EAP method authenticates the server.
|
||||
@@ -126,7 +126,7 @@ struct eap_method_t {
|
||||
*
|
||||
* @return current EAP identifier
|
||||
*/
|
||||
u_int8_t (*get_identifier) (eap_method_t *this);
|
||||
uint8_t (*get_identifier) (eap_method_t *this);
|
||||
|
||||
/**
|
||||
* Set the EAP identifier to a deterministic value, overwriting
|
||||
@@ -134,7 +134,7 @@ struct eap_method_t {
|
||||
*
|
||||
* @param identifier current EAP identifier
|
||||
*/
|
||||
void (*set_identifier) (eap_method_t *this, u_int8_t identifier);
|
||||
void (*set_identifier) (eap_method_t *this, uint8_t identifier);
|
||||
|
||||
/**
|
||||
* Get authentication details performed by this EAP method.
|
||||
|
||||
Reference in New Issue
Block a user