Disconnect hostapd from building in base
[dragonfly.git] / contrib / hostapd / src / eap_common / eap_common.h
CommitLineData
a875087d
JL
1/*
2 * EAP common peer/server definitions
4781064b 3 * Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi>
a875087d 4 *
4781064b
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
a875087d
JL
7 */
8
9#ifndef EAP_COMMON_H
10#define EAP_COMMON_H
11
12#include "wpabuf.h"
13
4781064b 14int eap_hdr_len_valid(const struct wpabuf *msg, size_t min_payload);
a875087d
JL
15const u8 * eap_hdr_validate(int vendor, EapType eap_type,
16 const struct wpabuf *msg, size_t *plen);
17struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
18 u8 code, u8 identifier);
19void eap_update_len(struct wpabuf *msg);
20u8 eap_get_id(const struct wpabuf *msg);
21EapType eap_get_type(const struct wpabuf *msg);
22
23#endif /* EAP_COMMON_H */