The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
eap_mschapv2.h
Go to the documentation of this file.
1 #pragma once
2 RCSIDH(eap_mschapv2_h, "$Id: 3627859f77150f93f893cf1b7d8635822d8c99a1 $")
3 
4 #include <freeradius-devel/eap/base.h>
5 
6 /*
7  * draft-kamath-pppext-eap-mschapv2-00.txt says:
8  *
9  * Supplicant FreeRADIUS
10  * <-- challenge
11  * response -->
12  * <-- success
13  * success -->
14  *
15  * But what we often see is:
16  *
17  * Supplicant FreeRADIUS
18  * <-- challenge
19  * response -->
20  * <-- success
21  * ack -->
22  */
23 #define FR_EAP_MSCHAPV2_ACK 0
24 #define FR_EAP_MSCHAPV2_CHALLENGE 1
25 #define FR_EAP_MSCHAPV2_RESPONSE 2
26 #define FR_EAP_MSCHAPV2_SUCCESS 3
27 #define FR_EAP_MSCHAPV2_FAILURE 4
28 #define FR_EAP_MSCHAPV2_CHGPASSWD 7
29 #define FR_EAP_MSCHAPV2_MAX_CODES 7
30 
31 #define MSCHAPV2_HEADER_LEN 5
32 #define MSCHAPV2_CHALLENGE_LEN 16
33 #define MSCHAPV2_RESPONSE_LEN 50
34 
35 typedef struct {
38  uint8_t ms_length[2];
41 
42 typedef struct {
43  int code;
#define RCSIDH(h, id)
Definition: build.h:482
#define MSCHAPV2_CHALLENGE_LEN
Definition: eap_mschapv2.h:32
fr_pair_list_t reply
Definition: eap_mschapv2.h:48
fr_pair_list_t mppe_keys
Definition: eap_mschapv2.h:47
unsigned char uint8_t
Definition: merged_model.c:30