eap_ttls.h

Go to the documentation of this file.
00001 
00016 #ifndef EAP_TTLS_H
00017 #define EAP_TTLS_H
00018 
00019 struct ttls_avp {
00020         be32 avp_code;
00021         be32 avp_length; /* 8-bit flags, 24-bit length;
00022                           * length includes AVP header */
00023         /* optional 32-bit Vendor-ID */
00024         /* Data */
00025 };
00026 
00027 struct ttls_avp_vendor {
00028         be32 avp_code;
00029         be32 avp_length; /* 8-bit flags, 24-bit length;
00030                           * length includes AVP header */
00031         be32 vendor_id;
00032         /* Data */
00033 };
00034 
00035 #define AVP_FLAGS_VENDOR 0x80
00036 #define AVP_FLAGS_MANDATORY 0x40
00037 
00038 #define AVP_PAD(start, pos) \
00039 do { \
00040         int __pad; \
00041         __pad = (4 - (((pos) - (start)) & 3)) & 3; \
00042         os_memset((pos), 0, __pad); \
00043         pos += __pad; \
00044 } while (0)
00045 
00046 
00047 /* RFC 2865 */
00048 #define RADIUS_ATTR_USER_NAME 1
00049 #define RADIUS_ATTR_USER_PASSWORD 2
00050 #define RADIUS_ATTR_CHAP_PASSWORD 3
00051 #define RADIUS_ATTR_REPLY_MESSAGE 18
00052 #define RADIUS_ATTR_CHAP_CHALLENGE 60
00053 #define RADIUS_ATTR_EAP_MESSAGE 79
00054 
00055 /* RFC 2548 */
00056 #define RADIUS_VENDOR_ID_MICROSOFT 311
00057 #define RADIUS_ATTR_MS_CHAP_RESPONSE 1
00058 #define RADIUS_ATTR_MS_CHAP_ERROR 2
00059 #define RADIUS_ATTR_MS_CHAP_NT_ENC_PW 6
00060 #define RADIUS_ATTR_MS_CHAP_CHALLENGE 11
00061 #define RADIUS_ATTR_MS_CHAP2_RESPONSE 25
00062 #define RADIUS_ATTR_MS_CHAP2_SUCCESS 26
00063 #define RADIUS_ATTR_MS_CHAP2_CPW 27
00064 
00065 #define EAP_TTLS_MSCHAPV2_CHALLENGE_LEN 16
00066 #define EAP_TTLS_MSCHAPV2_RESPONSE_LEN 50
00067 #define EAP_TTLS_MSCHAP_CHALLENGE_LEN 8
00068 #define EAP_TTLS_MSCHAP_RESPONSE_LEN 50
00069 #define EAP_TTLS_CHAP_CHALLENGE_LEN 16
00070 #define EAP_TTLS_CHAP_PASSWORD_LEN 16
00071 
00072 #endif /* EAP_TTLS_H */
00073 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:51 2009 for hostapd by  doxygen 1.6.1