wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions | Variables
eap_mschapv2.c File Reference

EAP peer method: EAP-MSCHAPV2 (draft-kamath-pppext-eap-mschapv2-00.txt) More...

#include "includes.h"
#include "common.h"
#include "crypto/ms_funcs.h"
#include "crypto/random.h"
#include "common/wpa_ctrl.h"
#include "mschapv2.h"
#include "eap_i.h"
#include "eap_config.h"

Data Structures

struct  eap_mschapv2_hdr
 
struct  ms_response
 
struct  ms_change_password
 
struct  eap_mschapv2_data
 

Macros

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

Functions

int eap_peer_mschapv2_register (void)
 Register EAP-MSCHAPv2 peer method. More...
 

Variables

struct eap_mschapv2_hdr STRUCT_PACKED
 

Detailed Description

EAP peer method: EAP-MSCHAPV2 (draft-kamath-pppext-eap-mschapv2-00.txt)

This file implements EAP peer part of EAP-MSCHAPV2 method (EAP type 26). draft-kamath-pppext-eap-mschapv2-00.txt defines the Microsoft EAP CHAP Extensions Protocol, Version 2, for mutual authentication and key derivation. This encapsulates MS-CHAP-v2 protocol which is defined in RFC 2759. Use of EAP-MSCHAPV2 derived keys with MPPE cipher is described in RFC 3079.

Function Documentation

int eap_peer_mschapv2_register ( void  )

Register EAP-MSCHAPv2 peer method.

Returns
0 on success, -1 on failure

This function is used to register EAP-MSCHAPv2 peer method into the EAP method list.