#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
Go to the source code of this file.
Data Structures | |
struct | eap_packet |
Structure to hold EAP data. More... | |
struct | eap_packet_raw |
Structure to represent packet format of eap on wire More... | |
struct | eap_type_data |
EAP-Type specific data. More... | |
Macros | |
#define | EAP_HEADER_LEN 4 |
#define | PW_EAP_EXPANDED_TYPE (254) |
Typedefs | |
typedef enum eap_code | eap_code_t |
typedef struct eap_packet_raw | eap_packet_raw_t |
Structure to represent packet format of eap on wire More... | |
typedef struct eap_packet | eap_packet_t |
Structure to hold EAP data. More... | |
typedef enum eap_rcode | eap_rcode_t |
typedef struct eap_type_data | eap_type_data_t |
EAP-Type specific data. More... | |
typedef enum eap_method | eap_type_t |
Functions | |
void | eap_add_reply (REQUEST *request, char const *name, uint8_t const *value, int len) |
int | eap_basic_compose (RADIUS_PACKET *packet, eap_packet_t *reply) |
eap_type_t | eap_name2type (char const *name) |
Return an EAP-Type for a particular name. More... | |
VALUE_PAIR * | eap_packet2vp (RADIUS_PACKET *packet, eap_packet_raw_t const *reply) |
char const * | eap_type2name (eap_type_t method) |
Return an EAP-name for a particular type. More... | |
eap_packet_raw_t * | eap_vp2packet (TALLOC_CTX *ctx, VALUE_PAIR *vps) |
int | eap_wireformat (eap_packet_t *reply) |
Variables | |
const FR_NAME_NUMBER | eap_rcode_table [] |
struct eap_packet |
Structure to hold EAP data.
length = code + id + length + type + type.data = 1 + 1 + 2 + 1 + X
Definition at line 132 of file eap_types.h.
Data Fields | ||
---|---|---|
eap_code_t | code | |
uint8_t | id | |
size_t | length | |
uint8_t * | packet | |
eap_type_data_t | type |
struct eap_packet_raw |
Structure to represent packet format of eap on wire
Definition at line 143 of file eap_types.h.
Data Fields | ||
---|---|---|
uint8_t | code | |
uint8_t | data[1] | |
uint8_t | id | |
uint8_t | length[2] |
struct eap_type_data |
EAP-Type specific data.
Definition at line 121 of file eap_types.h.
Data Fields | ||
---|---|---|
uint8_t * | data | |
size_t | length | |
eap_type_t | num |
#define EAP_HEADER_LEN 4 |
Definition at line 35 of file eap_types.h.
#define PW_EAP_EXPANDED_TYPE (254) |
Definition at line 104 of file eap_types.h.
typedef enum eap_code eap_code_t |
typedef struct eap_packet_raw eap_packet_raw_t |
Structure to represent packet format of eap on wire
typedef struct eap_packet eap_packet_t |
Structure to hold EAP data.
length = code + id + length + type + type.data = 1 + 1 + 2 + 1 + X
typedef enum eap_rcode eap_rcode_t |
typedef struct eap_type_data eap_type_data_t |
EAP-Type specific data.
typedef enum eap_method eap_type_t |
enum eap_code |
Enumerator | |
---|---|
PW_EAP_REQUEST | |
PW_EAP_RESPONSE | |
PW_EAP_SUCCESS | |
PW_EAP_FAILURE | |
PW_EAP_MAX_CODES |
Definition at line 37 of file eap_types.h.
enum eap_method |
Definition at line 45 of file eap_types.h.
enum eap_rcode |
Definition at line 106 of file eap_types.h.
void eap_add_reply | ( | REQUEST * | request, |
char const * | name, | ||
uint8_t const * | value, | ||
int | len | ||
) |
Definition at line 388 of file eapcommon.c.
int eap_basic_compose | ( | RADIUS_PACKET * | packet, |
eap_packet_t * | reply | ||
) |
Definition at line 191 of file eapcommon.c.
eap_type_t eap_name2type | ( | char const * | name | ) |
Return an EAP-Type for a particular name.
Converts a name into an IANA EAP type.
name | to convert. |
Definition at line 88 of file eapcommon.c.
VALUE_PAIR* eap_packet2vp | ( | RADIUS_PACKET * | packet, |
eap_packet_raw_t const * | reply | ||
) |
Definition at line 251 of file eapcommon.c.
char const* eap_type2name | ( | eap_type_t | method | ) |
Return an EAP-name for a particular type.
Resolve
Definition at line 104 of file eapcommon.c.
eap_packet_raw_t* eap_vp2packet | ( | TALLOC_CTX * | ctx, |
VALUE_PAIR * | vps | ||
) |
Definition at line 297 of file eapcommon.c.
int eap_wireformat | ( | eap_packet_t * | reply | ) |
const FR_NAME_NUMBER eap_rcode_table[] |
Definition at line 67 of file eapcommon.c.