wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
eap_ttls.h
Go to the documentation of this file.
1 
5 #ifndef EAP_TTLS_H
6 #define EAP_TTLS_H
7 
8 struct ttls_avp {
9  be32 avp_code;
10  be32 avp_length; /* 8-bit flags, 24-bit length;
11  * length includes AVP header */
12  /* optional 32-bit Vendor-ID */
13  /* Data */
14 };
15 
17  be32 avp_code;
18  be32 avp_length; /* 8-bit flags, 24-bit length;
19  * length includes AVP header */
20  be32 vendor_id;
21  /* Data */
22 };
23 
24 #define AVP_FLAGS_VENDOR 0x80
25 #define AVP_FLAGS_MANDATORY 0x40
26 
27 #define AVP_PAD(start, pos) \
28 do { \
29  int __pad; \
30  __pad = (4 - (((pos) - (start)) & 3)) & 3; \
31  os_memset((pos), 0, __pad); \
32  pos += __pad; \
33 } while (0)
34 
35 
36 /* RFC 2865 */
37 #define RADIUS_ATTR_USER_NAME 1
38 #define RADIUS_ATTR_USER_PASSWORD 2
39 #define RADIUS_ATTR_CHAP_PASSWORD 3
40 #define RADIUS_ATTR_REPLY_MESSAGE 18
41 #define RADIUS_ATTR_CHAP_CHALLENGE 60
42 #define RADIUS_ATTR_EAP_MESSAGE 79
43 
44 /* RFC 2548 */
45 #define RADIUS_VENDOR_ID_MICROSOFT 311
46 #define RADIUS_ATTR_MS_CHAP_RESPONSE 1
47 #define RADIUS_ATTR_MS_CHAP_ERROR 2
48 #define RADIUS_ATTR_MS_CHAP_NT_ENC_PW 6
49 #define RADIUS_ATTR_MS_CHAP_CHALLENGE 11
50 #define RADIUS_ATTR_MS_CHAP2_RESPONSE 25
51 #define RADIUS_ATTR_MS_CHAP2_SUCCESS 26
52 #define RADIUS_ATTR_MS_CHAP2_CPW 27
53 
54 #define EAP_TTLS_MSCHAPV2_CHALLENGE_LEN 16
55 #define EAP_TTLS_MSCHAPV2_RESPONSE_LEN 50
56 #define EAP_TTLS_MSCHAP_CHALLENGE_LEN 8
57 #define EAP_TTLS_MSCHAP_RESPONSE_LEN 50
58 #define EAP_TTLS_CHAP_CHALLENGE_LEN 16
59 #define EAP_TTLS_CHAP_PASSWORD_LEN 16
60 
61 #endif /* EAP_TTLS_H */
Definition: eap_ttls.h:16
Definition: eap_ttls.h:8