All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
eap_types.h File Reference
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
+ Include dependency graph for eap_types.h:
+ This graph shows which files directly or indirectly include this file:

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
 

Enumerations

enum  eap_code {
  PW_EAP_REQUEST = 1,
  PW_EAP_RESPONSE,
  PW_EAP_SUCCESS,
  PW_EAP_FAILURE,
  PW_EAP_MAX_CODES
}
 
enum  eap_method {
  PW_EAP_INVALID = 0,
  PW_EAP_IDENTITY,
  PW_EAP_NOTIFICATION,
  PW_EAP_NAK,
  PW_EAP_MD5,
  PW_EAP_OTP,
  PW_EAP_GTC,
  PW_EAP_7,
  PW_EAP_8,
  PW_EAP_RSA_PUBLIC_KEY,
  PW_eap_round_tS_UNILATERAL,
  PW_EAP_KEA,
  PW_EAP_KEA_VALIDATE,
  PW_EAP_TLS,
  PW_EAP_DEFENDER_TOKEN,
  PW_EAP_RSA_SECURID,
  PW_EAP_ARCOT_SYSTEMS,
  PW_EAP_LEAP,
  PW_EAP_SIM,
  PW_EAP_SRP_SHA1,
  PW_EAP_20,
  PW_EAP_TTLS,
  PW_EAP_REMOTE_ACCESS_SERVICE,
  PW_EAP_AKA,
  PW_EAP_3COM,
  PW_EAP_PEAP,
  PW_EAP_MSCHAPV2,
  PW_EAP_MAKE,
  PW_EAP_CRYPTOCARD,
  PW_EAP_CISCO_MSCHAPV2,
  PW_EAP_DYNAMID,
  PW_EAP_ROB,
  PW_EAP_POTP,
  PW_EAP_MS_ATLV,
  PW_EAP_SENTRINET,
  PW_EAP_ACTIONTEC,
  PW_EAP_COGENT_BIOMETRIC,
  PW_EAP_AIRFORTRESS,
  PW_EAP_TNC,
  PW_EAP_SECURISUITE,
  PW_EAP_DEVICECONNECT,
  PW_EAP_SPEKE,
  PW_EAP_MOBAC,
  PW_EAP_FAST,
  PW_EAP_ZONELABS,
  PW_EAP_LINK,
  PW_EAP_PAX,
  PW_EAP_PSK,
  PW_EAP_SAKE,
  PW_EAP_IKEV2,
  PW_EAP_AKA2,
  PW_EAP_GPSK,
  PW_EAP_PWD,
  PW_EAP_EKE,
  PW_EAP_MAX_TYPES
}
 
enum  eap_rcode {
  EAP_NOTFOUND,
  EAP_FOUND,
  EAP_OK,
  EAP_FAIL,
  EAP_NOOP,
  EAP_INVALID,
  EAP_VALID,
  EAP_MAX_RCODES
}
 

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_PAIReap_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_teap_vp2packet (TALLOC_CTX *ctx, VALUE_PAIR *vps)
 
int eap_wireformat (eap_packet_t *reply)
 

Variables

const FR_NAME_NUMBER eap_rcode_table []
 

Data Structure Documentation

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.

+ Collaboration diagram for eap_packet:
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

Macro Definition Documentation

#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 Documentation

typedef enum eap_code eap_code_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

EAP-Type specific data.

typedef enum eap_method eap_type_t

Enumeration Type Documentation

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
Enumerator
PW_EAP_INVALID 
PW_EAP_IDENTITY 
PW_EAP_NOTIFICATION 
PW_EAP_NAK 
PW_EAP_MD5 
PW_EAP_OTP 
PW_EAP_GTC 
PW_EAP_7 
PW_EAP_8 
PW_EAP_RSA_PUBLIC_KEY 
PW_eap_round_tS_UNILATERAL 
PW_EAP_KEA 
PW_EAP_KEA_VALIDATE 
PW_EAP_TLS 
PW_EAP_DEFENDER_TOKEN 
PW_EAP_RSA_SECURID 
PW_EAP_ARCOT_SYSTEMS 
PW_EAP_LEAP 
PW_EAP_SIM 
PW_EAP_SRP_SHA1 
PW_EAP_20 
PW_EAP_TTLS 
PW_EAP_REMOTE_ACCESS_SERVICE 
PW_EAP_AKA 
PW_EAP_3COM 
PW_EAP_PEAP 
PW_EAP_MSCHAPV2 
PW_EAP_MAKE 
PW_EAP_CRYPTOCARD 
PW_EAP_CISCO_MSCHAPV2 
PW_EAP_DYNAMID 
PW_EAP_ROB 
PW_EAP_POTP 
PW_EAP_MS_ATLV 
PW_EAP_SENTRINET 
PW_EAP_ACTIONTEC 
PW_EAP_COGENT_BIOMETRIC 
PW_EAP_AIRFORTRESS 
PW_EAP_TNC 
PW_EAP_SECURISUITE 
PW_EAP_DEVICECONNECT 
PW_EAP_SPEKE 
PW_EAP_MOBAC 
PW_EAP_FAST 
PW_EAP_ZONELABS 
PW_EAP_LINK 
PW_EAP_PAX 
PW_EAP_PSK 
PW_EAP_SAKE 
PW_EAP_IKEV2 
PW_EAP_AKA2 
PW_EAP_GPSK 
PW_EAP_PWD 
PW_EAP_EKE 
PW_EAP_MAX_TYPES 

Definition at line 45 of file eap_types.h.

enum eap_rcode
Enumerator
EAP_NOTFOUND 

EAP eap_session data not found.

EAP_FOUND 

EAP eap_session data found, continue.

EAP_OK 

Ok, continue.

EAP_FAIL 

Failed, don't reply.

EAP_NOOP 

Succeeded without doing anything.

EAP_INVALID 

Invalid, don't reply.

EAP_VALID 

Valid, continue.

EAP_MAX_RCODES 

Definition at line 106 of file eap_types.h.

Function Documentation

void eap_add_reply ( REQUEST request,
char const *  name,
uint8_t const *  value,
int  len 
)

Definition at line 388 of file eapcommon.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int eap_basic_compose ( RADIUS_PACKET packet,
eap_packet_t reply 
)

Definition at line 191 of file eapcommon.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

eap_type_t eap_name2type ( char const *  name)

Return an EAP-Type for a particular name.

Converts a name into an IANA EAP type.

Parameters
nameto convert.
Returns
  • IANA EAP type.
  • PW_EAP_INVALID if the name doesn't match any known types.

Definition at line 88 of file eapcommon.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_PAIR* eap_packet2vp ( RADIUS_PACKET packet,
eap_packet_raw_t const *  reply 
)

Definition at line 251 of file eapcommon.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

eap_packet_raw_t* eap_vp2packet ( TALLOC_CTX *  ctx,
VALUE_PAIR vps 
)

Definition at line 297 of file eapcommon.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int eap_wireformat ( eap_packet_t reply)

Definition at line 128 of file eapcommon.c.

+ Here is the caller graph for this function:

Variable Documentation

const FR_NAME_NUMBER eap_rcode_table[]

Definition at line 67 of file eapcommon.c.