00001 00016 #ifndef EAP_COMMON_H 00017 #define EAP_COMMON_H 00018 00019 #include "wpabuf.h" 00020 00021 const u8 * eap_hdr_validate(int vendor, EapType eap_type, 00022 const struct wpabuf *msg, size_t *plen); 00023 struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len, 00024 u8 code, u8 identifier); 00025 void eap_update_len(struct wpabuf *msg); 00026 u8 eap_get_id(const struct wpabuf *msg); 00027 EapType eap_get_type(const struct wpabuf *msg); 00028 00029 #endif /* EAP_COMMON_H */ 00030