All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
eap_mschapv2.h
Go to the documentation of this file.
1 #ifndef _EAP_MSCHAPV2_H
2 #define _EAP_MSCHAPV2_H
3 
4 RCSIDH(eap_mschapv2_h, "$Id: 1ce2470ed9a36def1abe5a601a83f6d8769e7d61 $")
5 
6 #include "eap.h"
7 
8 /*
9  * draft-kamath-pppext-eap-mschapv2-00.txt says:
10  *
11  * Supplicant FreeRADIUS
12  * <-- challenge
13  * response -->
14  * <-- success
15  * success -->
16  *
17  * But what we often see is:
18  *
19  * Supplicant FreeRADIUS
20  * <-- challenge
21  * response -->
22  * <-- success
23  * ack -->
24  */
25 #define PW_EAP_MSCHAPV2_ACK 0
26 #define PW_EAP_MSCHAPV2_CHALLENGE 1
27 #define PW_EAP_MSCHAPV2_RESPONSE 2
28 #define PW_EAP_MSCHAPV2_SUCCESS 3
29 #define PW_EAP_MSCHAPV2_FAILURE 4
30 #define PW_EAP_MSCHAPV2_CHGPASSWD 7
31 #define PW_EAP_MSCHAPV2_MAX_CODES 7
32 
33 #define MSCHAPV2_HEADER_LEN 5
34 #define MSCHAPV2_CHALLENGE_LEN 16
35 #define MSCHAPV2_RESPONSE_LEN 50
36 
37 typedef struct mschapv2_header_t {
38  uint8_t opcode;
39  uint8_t mschapv2_id;
40  uint8_t ms_length[2];
41  uint8_t value_size;
43 
44 typedef struct mschapv2_opaque_t {
45  int code;
50 
51 #endif /*_EAP_MSCHAPV2_H*/
#define RCSIDH(h, id)
Definition: build.h:136
#define MSCHAPV2_CHALLENGE_LEN
Definition: eap_mschapv2.h:34
uint8_t challenge[MSCHAPV2_CHALLENGE_LEN]
Definition: eap_mschapv2.h:46
Stores an attribute, a value and various bits of other data.
Definition: pair.h:112
VALUE_PAIR * reply
Definition: eap_mschapv2.h:48
uint8_t ms_length[2]
Definition: eap_mschapv2.h:40
VALUE_PAIR * mppe_keys
Definition: eap_mschapv2.h:47
struct mschapv2_header_t mschapv2_header_t
struct mschapv2_opaque_t mschapv2_opaque_t