The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Typedefs | Enumerations | Functions
types.h File Reference

EAP type resolution. More...

#include <stdint.h>
#include <stddef.h>
+ Include dependency graph for 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_raw_t
 Structure to represent packet format of eap on wire More...
 
struct  eap_type_data_t
 EAP-Type specific data. More...
 

Macros

#define EAP_HEADER_LEN   4
 
#define FR_EAP_EXPANDED_TYPE   (254)
 

Typedefs

typedef enum eap_code eap_code_t
 
typedef enum eap_type eap_type_t
 

Enumerations

enum  eap_code {
  FR_EAP_CODE_REQUEST = 1 ,
  FR_EAP_CODE_RESPONSE ,
  FR_EAP_CODE_SUCCESS ,
  FR_EAP_CODE_FAILURE ,
  FR_EAP_CODE_MAX
}
 
enum  eap_type {
  FR_EAP_METHOD_INVALID = 0 ,
  FR_EAP_METHOD_IDENTITY ,
  FR_EAP_METHOD_NOTIFICATION ,
  FR_EAP_METHOD_NAK ,
  FR_EAP_METHOD_MD5 ,
  FR_EAP_METHOD_OTP ,
  FR_EAP_METHOD_GTC ,
  FR_EAP_METHOD_7 ,
  FR_EAP_METHOD_8 ,
  FR_EAP_METHOD_RSA_PUBLIC_KEY ,
  FR_EAP_METHOD_DSS_UNILATERAL ,
  FR_EAP_METHOD_KEA ,
  FR_EAP_METHOD_KEA_VALIDATE ,
  FR_EAP_METHOD_TLS ,
  FR_EAP_METHOD_DEFENDER_TOKEN ,
  FR_EAP_METHOD_RSA_SECURID ,
  FR_EAP_METHOD_ARCOT_SYSTEMS ,
  FR_EAP_METHOD_LEAP ,
  FR_EAP_METHOD_SIM ,
  FR_EAP_METHOD_SRP_SHA1 ,
  FR_EAP_METHOD_20 ,
  FR_EAP_METHOD_TTLS ,
  FR_EAP_METHOD_REMOTE_ACCESS_SERVICE ,
  FR_EAP_METHOD_AKA ,
  FR_EAP_METHOD_3COM ,
  FR_EAP_METHOD_PEAP ,
  FR_EAP_METHOD_MSCHAPV2 ,
  FR_EAP_METHOD_MAKE ,
  FR_EAP_METHOD_CRYPTOCARD ,
  FR_EAP_METHOD_CISCO_MSCHAPV2 ,
  FR_EAP_METHOD_DYNAMID ,
  FR_EAP_METHOD_ROB ,
  FR_EAP_METHOD_POTP ,
  FR_EAP_METHOD_MS_ATLV ,
  FR_EAP_METHOD_SENTRINET ,
  FR_EAP_METHOD_ACTIONTEC ,
  FR_EAP_METHOD_COGENT_BIOMETRIC ,
  FR_EAP_METHOD_AIRFORTRESS ,
  FR_EAP_METHOD_TNC ,
  FR_EAP_METHOD_SECURISUITE ,
  FR_EAP_METHOD_DEVICECONNECT ,
  FR_EAP_METHOD_SPEKE ,
  FR_EAP_METHOD_MOBAC ,
  FR_EAP_METHOD_FAST ,
  FR_EAP_METHOD_ZONELABS ,
  FR_EAP_METHOD_LINK ,
  FR_EAP_METHOD_PAX ,
  FR_EAP_METHOD_PSK ,
  FR_EAP_METHOD_SAKE ,
  FR_EAP_METHOD_IKEV2 ,
  FR_EAP_METHOD_AKA_PRIME ,
  FR_EAP_METHOD_GPSK ,
  FR_EAP_METHOD_PWD ,
  FR_EAP_METHOD_EKE ,
  FR_EAP_METHOD_PT ,
  FR_EAP_METHOD_TEAP ,
  FR_EAP_METHOD_MAX
}
 

Functions

eap_type_t eap_name2type (char const *name)
 Return an EAP-Type for a particular name. More...
 
char const * eap_type2name (eap_type_t method)
 Return an EAP-name for a particular type. More...
 

Detailed Description

EAP type resolution.

Header file containing the interfaces for all EAP types.

Id
5bf76a7d2a8ae0625c902933db99414bc9e17078
Id
b046e5ad2b62abe225cdd11d03460dd1815c9a80

Definition in file types.h.


Data Structure Documentation

◆ eap_packet_raw_t

struct eap_packet_raw_t

Structure to represent packet format of eap on wire

Note
Do not change field order, or field size. Code depends on sizeof(eap_packet_raw_t), and uses this structure for on the wire parsing.

Definition at line 121 of file types.h.

Data Fields
uint8_t code
uint8_t data[1]
uint8_t id
uint8_t length[2]

◆ eap_type_data_t

struct eap_type_data_t

EAP-Type specific data.

Definition at line 109 of file types.h.

Data Fields
uint8_t * data
size_t length
eap_type_t num

Macro Definition Documentation

◆ EAP_HEADER_LEN

#define EAP_HEADER_LEN   4

Definition at line 34 of file types.h.

◆ FR_EAP_EXPANDED_TYPE

#define FR_EAP_EXPANDED_TYPE   (254)

Definition at line 105 of file types.h.

Typedef Documentation

◆ eap_code_t

typedef enum eap_code eap_code_t

◆ eap_type_t

typedef enum eap_type eap_type_t

Enumeration Type Documentation

◆ eap_code

enum eap_code
Enumerator
FR_EAP_CODE_REQUEST 
FR_EAP_CODE_RESPONSE 
FR_EAP_CODE_SUCCESS 
FR_EAP_CODE_FAILURE 
FR_EAP_CODE_MAX 

Definition at line 36 of file types.h.

◆ eap_type

enum eap_type
Enumerator
FR_EAP_METHOD_INVALID 
FR_EAP_METHOD_IDENTITY 
FR_EAP_METHOD_NOTIFICATION 
FR_EAP_METHOD_NAK 
FR_EAP_METHOD_MD5 
FR_EAP_METHOD_OTP 
FR_EAP_METHOD_GTC 
FR_EAP_METHOD_7 
FR_EAP_METHOD_8 
FR_EAP_METHOD_RSA_PUBLIC_KEY 
FR_EAP_METHOD_DSS_UNILATERAL 
FR_EAP_METHOD_KEA 
FR_EAP_METHOD_KEA_VALIDATE 
FR_EAP_METHOD_TLS 
FR_EAP_METHOD_DEFENDER_TOKEN 
FR_EAP_METHOD_RSA_SECURID 
FR_EAP_METHOD_ARCOT_SYSTEMS 
FR_EAP_METHOD_LEAP 
FR_EAP_METHOD_SIM 
FR_EAP_METHOD_SRP_SHA1 
FR_EAP_METHOD_20 
FR_EAP_METHOD_TTLS 
FR_EAP_METHOD_REMOTE_ACCESS_SERVICE 
FR_EAP_METHOD_AKA 
FR_EAP_METHOD_3COM 
FR_EAP_METHOD_PEAP 
FR_EAP_METHOD_MSCHAPV2 
FR_EAP_METHOD_MAKE 
FR_EAP_METHOD_CRYPTOCARD 
FR_EAP_METHOD_CISCO_MSCHAPV2 
FR_EAP_METHOD_DYNAMID 
FR_EAP_METHOD_ROB 
FR_EAP_METHOD_POTP 
FR_EAP_METHOD_MS_ATLV 
FR_EAP_METHOD_SENTRINET 
FR_EAP_METHOD_ACTIONTEC 
FR_EAP_METHOD_COGENT_BIOMETRIC 
FR_EAP_METHOD_AIRFORTRESS 
FR_EAP_METHOD_TNC 
FR_EAP_METHOD_SECURISUITE 
FR_EAP_METHOD_DEVICECONNECT 
FR_EAP_METHOD_SPEKE 
FR_EAP_METHOD_MOBAC 
FR_EAP_METHOD_FAST 
FR_EAP_METHOD_ZONELABS 
FR_EAP_METHOD_LINK 
FR_EAP_METHOD_PAX 
FR_EAP_METHOD_PSK 
FR_EAP_METHOD_SAKE 
FR_EAP_METHOD_IKEV2 
FR_EAP_METHOD_AKA_PRIME 
FR_EAP_METHOD_GPSK 
FR_EAP_METHOD_PWD 
FR_EAP_METHOD_EKE 
FR_EAP_METHOD_PT 
FR_EAP_METHOD_TEAP 
FR_EAP_METHOD_MAX 

Definition at line 44 of file types.h.

Function Documentation

◆ eap_name2type()

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

Definition at line 38 of file types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eap_type2name()

char const* eap_type2name ( eap_type_t  method)

Return an EAP-name for a particular type.

Resolve

Definition at line 54 of file types.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: