hostapd: Update vendor branch to 0.6.10
[dragonfly.git] / contrib / hostapd / src / eap_common / eap_common.h
blobb95e76b94f5c31a55df9228038f6981eccc0f55f
1 /*
2 * EAP common peer/server definitions
3 * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #ifndef EAP_COMMON_H
16 #define EAP_COMMON_H
18 #include "wpabuf.h"
20 const u8 * eap_hdr_validate(int vendor, EapType eap_type,
21 const struct wpabuf *msg, size_t *plen);
22 struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
23 u8 code, u8 identifier);
24 void eap_update_len(struct wpabuf *msg);
25 u8 eap_get_id(const struct wpabuf *msg);
26 EapType eap_get_type(const struct wpabuf *msg);
28 #endif /* EAP_COMMON_H */