eap_sim.c File Reference

#include "includes.h"
#include "common.h"
#include "pcsc_funcs.h"
#include "crypto/milenage.h"
#include "eap_peer/eap_i.h"
#include "eap_config.h"
#include "eap_common/eap_sim_common.h"
Include dependency graph for eap_sim.c:

Go to the source code of this file.

Classes

struct  eap_sim_data

Defines

#define CLEAR_EAP_ID   0x04
#define CLEAR_PSEUDONYM   0x01
#define CLEAR_REAUTH_ID   0x02

Functions

int eap_peer_sim_register (void)
static void eap_sim_clear_identities (struct eap_sim_data *data, int id)
static struct wpabufeap_sim_client_error (struct eap_sim_data *data, u8 id, int err)
static void eap_sim_deinit (struct eap_sm *sm, void *priv)
static void eap_sim_deinit_for_reauth (struct eap_sm *sm, void *priv)
static u8eap_sim_get_emsk (struct eap_sm *sm, void *priv, size_t *len)
static const u8eap_sim_get_identity (struct eap_sm *sm, void *priv, size_t *len)
static u8eap_sim_getKey (struct eap_sm *sm, void *priv, size_t *len)
static int eap_sim_gsm_auth (struct eap_sm *sm, struct eap_sim_data *data)
static Boolean eap_sim_has_reauth_data (struct eap_sm *sm, void *priv)
static void * eap_sim_init (struct eap_sm *sm)
static void * eap_sim_init_for_reauth (struct eap_sm *sm, void *priv)
static Boolean eap_sim_isKeyAvailable (struct eap_sm *sm, void *priv)
static int eap_sim_learn_ids (struct eap_sim_data *data, struct eap_sim_attrs *attr)
static struct wpabufeap_sim_process (struct eap_sm *sm, void *priv, struct eap_method_ret *ret, const struct wpabuf *reqData)
static struct wpabufeap_sim_process_challenge (struct eap_sm *sm, struct eap_sim_data *data, u8 id, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static struct wpabufeap_sim_process_notification (struct eap_sm *sm, struct eap_sim_data *data, u8 id, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static int eap_sim_process_notification_auth (struct eap_sim_data *data, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static int eap_sim_process_notification_reauth (struct eap_sim_data *data, struct eap_sim_attrs *attr)
static struct wpabufeap_sim_process_reauthentication (struct eap_sm *sm, struct eap_sim_data *data, u8 id, const struct wpabuf *reqData, struct eap_sim_attrs *attr)
static struct wpabufeap_sim_process_start (struct eap_sm *sm, struct eap_sim_data *data, u8 id, struct eap_sim_attrs *attr)
static struct wpabufeap_sim_response_challenge (struct eap_sim_data *data, u8 id)
static struct wpabufeap_sim_response_notification (struct eap_sim_data *data, u8 id, u16 notification)
static struct wpabufeap_sim_response_reauth (struct eap_sim_data *data, u8 id, int counter_too_small)
static struct wpabufeap_sim_response_start (struct eap_sm *sm, struct eap_sim_data *data, u8 id, enum eap_sim_id_req id_req)
static void eap_sim_state (struct eap_sim_data *data, int state)
static const char * eap_sim_state_txt (int state)
static int eap_sim_supported_ver (int version)

Define Documentation

#define CLEAR_EAP_ID   0x04

Definition at line 264 of file eap_sim.c.

#define CLEAR_PSEUDONYM   0x01

Definition at line 262 of file eap_sim.c.

#define CLEAR_REAUTH_ID   0x02

Definition at line 263 of file eap_sim.c.


Function Documentation

int eap_peer_sim_register ( void   ) 

Definition at line 1075 of file eap_sim.c.

static void eap_sim_clear_identities ( struct eap_sim_data data,
int  id 
) [static]

Definition at line 266 of file eap_sim.c.

static struct wpabuf* eap_sim_client_error ( struct eap_sim_data data,
u8  id,
int  err 
) [static, read]

Definition at line 331 of file eap_sim.c.

static void eap_sim_deinit ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 131 of file eap_sim.c.

static void eap_sim_deinit_for_reauth ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 987 of file eap_sim.c.

static u8* eap_sim_get_emsk ( struct eap_sm sm,
void *  priv,
size_t *  len 
) [static]

Definition at line 1056 of file eap_sim.c.

static const u8* eap_sim_get_identity ( struct eap_sm sm,
void *  priv,
size_t *  len 
) [static]

Definition at line 1011 of file eap_sim.c.

static u8* eap_sim_getKey ( struct eap_sm sm,
void *  priv,
size_t *  len 
) [static]

Definition at line 1037 of file eap_sim.c.

static int eap_sim_gsm_auth ( struct eap_sm sm,
struct eap_sim_data data 
) [static]

Definition at line 144 of file eap_sim.c.

static Boolean eap_sim_has_reauth_data ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 980 of file eap_sim.c.

static void* eap_sim_init ( struct eap_sm sm  )  [static]

Definition at line 87 of file eap_sim.c.

static void* eap_sim_init_for_reauth ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 995 of file eap_sim.c.

static Boolean eap_sim_isKeyAvailable ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 1030 of file eap_sim.c.

static int eap_sim_learn_ids ( struct eap_sim_data data,
struct eap_sim_attrs attr 
) [static]

Definition at line 290 of file eap_sim.c.

static struct wpabuf* eap_sim_process ( struct eap_sm sm,
void *  priv,
struct eap_method_ret ret,
const struct wpabuf reqData 
) [static, read]

Definition at line 886 of file eap_sim.c.

static struct wpabuf* eap_sim_process_challenge ( struct eap_sm sm,
struct eap_sim_data data,
u8  id,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static, read]

Definition at line 569 of file eap_sim.c.

static struct wpabuf* eap_sim_process_notification ( struct eap_sm sm,
struct eap_sim_data data,
u8  id,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static, read]

Definition at line 750 of file eap_sim.c.

static int eap_sim_process_notification_auth ( struct eap_sim_data data,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static]

Definition at line 722 of file eap_sim.c.

static int eap_sim_process_notification_reauth ( struct eap_sim_data data,
struct eap_sim_attrs attr 
) [static]

Definition at line 688 of file eap_sim.c.

static struct wpabuf* eap_sim_process_reauthentication ( struct eap_sm sm,
struct eap_sim_data data,
u8  id,
const struct wpabuf reqData,
struct eap_sim_attrs attr 
) [static, read]

Definition at line 785 of file eap_sim.c.

static struct wpabuf* eap_sim_process_start ( struct eap_sm sm,
struct eap_sim_data data,
u8  id,
struct eap_sim_attrs attr 
) [static, read]

Definition at line 493 of file eap_sim.c.

static struct wpabuf* eap_sim_response_challenge ( struct eap_sim_data data,
u8  id 
) [static, read]

Definition at line 400 of file eap_sim.c.

static struct wpabuf* eap_sim_response_notification ( struct eap_sim_data data,
u8  id,
u16  notification 
) [static, read]

Definition at line 460 of file eap_sim.c.

static struct wpabuf* eap_sim_response_reauth ( struct eap_sim_data data,
u8  id,
int  counter_too_small 
) [static, read]

Definition at line 419 of file eap_sim.c.

static struct wpabuf* eap_sim_response_start ( struct eap_sm sm,
struct eap_sim_data data,
u8  id,
enum eap_sim_id_req  id_req 
) [static, read]

Definition at line 347 of file eap_sim.c.

static void eap_sim_state ( struct eap_sim_data data,
int  state 
) [static]

Definition at line 78 of file eap_sim.c.

static const char* eap_sim_state_txt ( int  state  )  [static]

Definition at line 58 of file eap_sim.c.

static int eap_sim_supported_ver ( int  version  )  [static]

Definition at line 256 of file eap_sim.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:04:35 2013