2 * EAP common peer/server definitions
3 * Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
22 int eap_hdr_len_valid(const struct wpabuf *msg, size_t min_payload);
23 const u8 * eap_hdr_validate(int vendor, EapType eap_type,
24 const struct wpabuf *msg, size_t *plen);
25 struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
26 u8 code, u8 identifier);
27 void eap_update_len(struct wpabuf *msg);
28 u8 eap_get_id(const struct wpabuf *msg);
29 EapType eap_get_type(const struct wpabuf *msg);
30 int erp_parse_tlvs(const u8 *pos, const u8 *end, struct erp_tlvs *tlvs,
33 #endif /* EAP_COMMON_H */