eap_server_mschapv2.c File Reference

#include "includes.h"
#include "common.h"
#include "crypto/ms_funcs.h"
#include "eap_i.h"
Include dependency graph for eap_server_mschapv2.c:

Go to the source code of this file.

Classes

struct  eap_mschapv2_data
struct  eap_mschapv2_hdr

Defines

#define CHALLENGE_LEN   16
#define ERROR_ACCT_DISABLED   647
#define ERROR_AUTHENTICATION_FAILURE   691
#define ERROR_CHANGING_PASSWORD   709
#define ERROR_NO_DIALIN_PERMISSION   649
#define ERROR_PASSWD_EXPIRED   648
#define ERROR_RESTRICTED_LOGON_HOURS   646
#define MSCHAPV2_KEY_LEN   16
#define MSCHAPV2_OP_CHALLENGE   1
#define MSCHAPV2_OP_CHANGE_PASSWORD   7
#define MSCHAPV2_OP_FAILURE   4
#define MSCHAPV2_OP_RESPONSE   2
#define MSCHAPV2_OP_SUCCESS   3
#define MSCHAPV2_RESP_LEN   49
#define PASSWD_CHANGE_CHAL_LEN   16

Functions

static struct wpabufeap_mschapv2_build_challenge (struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id)
static struct wpabufeap_mschapv2_build_failure_req (struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id)
static struct wpabufeap_mschapv2_build_success_req (struct eap_sm *sm, struct eap_mschapv2_data *data, u8 id)
static struct wpabufeap_mschapv2_buildReq (struct eap_sm *sm, void *priv, u8 id)
static Boolean eap_mschapv2_check (struct eap_sm *sm, void *priv, struct wpabuf *respData)
static u8eap_mschapv2_getKey (struct eap_sm *sm, void *priv, size_t *len)
static void * eap_mschapv2_init (struct eap_sm *sm)
static Boolean eap_mschapv2_isDone (struct eap_sm *sm, void *priv)
static Boolean eap_mschapv2_isSuccess (struct eap_sm *sm, void *priv)
static void eap_mschapv2_process (struct eap_sm *sm, void *priv, struct wpabuf *respData)
static void eap_mschapv2_process_failure_resp (struct eap_sm *sm, struct eap_mschapv2_data *data, struct wpabuf *respData)
static void eap_mschapv2_process_response (struct eap_sm *sm, struct eap_mschapv2_data *data, struct wpabuf *respData)
static void eap_mschapv2_process_success_resp (struct eap_sm *sm, struct eap_mschapv2_data *data, struct wpabuf *respData)
static void eap_mschapv2_reset (struct eap_sm *sm, void *priv)
int eap_server_mschapv2_register (void)

Variables

struct eap_mschapv2_hdr STRUCT_PACKED

Define Documentation

#define CHALLENGE_LEN   16

Definition at line 49 of file eap_server_mschapv2.c.

#define ERROR_ACCT_DISABLED   647

Definition at line 39 of file eap_server_mschapv2.c.

#define ERROR_AUTHENTICATION_FAILURE   691

Definition at line 42 of file eap_server_mschapv2.c.

#define ERROR_CHANGING_PASSWORD   709

Definition at line 43 of file eap_server_mschapv2.c.

#define ERROR_NO_DIALIN_PERMISSION   649

Definition at line 41 of file eap_server_mschapv2.c.

#define ERROR_PASSWD_EXPIRED   648

Definition at line 40 of file eap_server_mschapv2.c.

#define ERROR_RESTRICTED_LOGON_HOURS   646

Definition at line 38 of file eap_server_mschapv2.c.

#define MSCHAPV2_KEY_LEN   16

Definition at line 46 of file eap_server_mschapv2.c.

#define MSCHAPV2_OP_CHALLENGE   1

Definition at line 30 of file eap_server_mschapv2.c.

#define MSCHAPV2_OP_CHANGE_PASSWORD   7

Definition at line 34 of file eap_server_mschapv2.c.

#define MSCHAPV2_OP_FAILURE   4

Definition at line 33 of file eap_server_mschapv2.c.

#define MSCHAPV2_OP_RESPONSE   2

Definition at line 31 of file eap_server_mschapv2.c.

#define MSCHAPV2_OP_SUCCESS   3

Definition at line 32 of file eap_server_mschapv2.c.

#define MSCHAPV2_RESP_LEN   49

Definition at line 36 of file eap_server_mschapv2.c.

#define PASSWD_CHANGE_CHAL_LEN   16

Definition at line 45 of file eap_server_mschapv2.c.


Function Documentation

static struct wpabuf* eap_mschapv2_build_challenge ( struct eap_sm sm,
struct eap_mschapv2_data data,
u8  id 
) [static, read]

Definition at line 103 of file eap_server_mschapv2.c.

static struct wpabuf* eap_mschapv2_build_failure_req ( struct eap_sm sm,
struct eap_mschapv2_data data,
u8  id 
) [static, read]

Definition at line 191 of file eap_server_mschapv2.c.

static struct wpabuf* eap_mschapv2_build_success_req ( struct eap_sm sm,
struct eap_mschapv2_data data,
u8  id 
) [static, read]

Definition at line 147 of file eap_server_mschapv2.c.

static struct wpabuf* eap_mschapv2_buildReq ( struct eap_sm sm,
void *  priv,
u8  id 
) [static, read]

Definition at line 224 of file eap_server_mschapv2.c.

static Boolean eap_mschapv2_check ( struct eap_sm sm,
void *  priv,
struct wpabuf respData 
) [static]

Definition at line 245 of file eap_server_mschapv2.c.

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

Definition at line 521 of file eap_server_mschapv2.c.

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

Definition at line 63 of file eap_server_mschapv2.c.

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

Definition at line 514 of file eap_server_mschapv2.c.

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

Definition at line 543 of file eap_server_mschapv2.c.

static void eap_mschapv2_process ( struct eap_sm sm,
void *  priv,
struct wpabuf respData 
) [static]

Definition at line 485 of file eap_server_mschapv2.c.

static void eap_mschapv2_process_failure_resp ( struct eap_sm sm,
struct eap_mschapv2_data data,
struct wpabuf respData 
) [static]

Definition at line 458 of file eap_server_mschapv2.c.

static void eap_mschapv2_process_response ( struct eap_sm sm,
struct eap_mschapv2_data data,
struct wpabuf respData 
) [static]

Definition at line 287 of file eap_server_mschapv2.c.

static void eap_mschapv2_process_success_resp ( struct eap_sm sm,
struct eap_mschapv2_data data,
struct wpabuf respData 
) [static]

Definition at line 431 of file eap_server_mschapv2.c.

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

Definition at line 92 of file eap_server_mschapv2.c.

int eap_server_mschapv2_register ( void   ) 

Definition at line 550 of file eap_server_mschapv2.c.


Variable Documentation

 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:33 2013