mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
c139683024
Move supplicant to idf and do following refactoring: 1. Make the folder structure consitent with supplicant upstream 2. Remove duplicated header files and minimize the public header files 3. Refactor for WiFi/supplicant interfaces
24 lines
717 B
C
24 lines
717 B
C
/*
|
|
* EAP common peer/server definitions
|
|
* Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef EAP_COMMON_H
|
|
#define EAP_COMMON_H
|
|
|
|
#include "utils/wpabuf.h"
|
|
|
|
int eap_hdr_len_valid(const struct wpabuf *msg, size_t min_payload);
|
|
const u8 * eap_hdr_validate(int vendor, EapType eap_type,
|
|
const struct wpabuf *msg, size_t *plen);
|
|
struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
|
|
u8 code, u8 identifier);
|
|
void eap_update_len(struct wpabuf *msg);
|
|
u8 eap_get_id(const struct wpabuf *msg);
|
|
EapType eap_get_type(const struct wpabuf *msg);
|
|
|
|
#endif /* EAP_COMMON_H */
|