00001 /*00002 * EAP common peer/server definitions00003 * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>00004 *00005 * This program is free software; you can redistribute it and/or modify00006 * it under the terms of the GNU General Public License version 2 as00007 * published by the Free Software Foundation.00008 *00009 * Alternatively, this software may be distributed under the terms of BSD00010 * license.00011 *00012 * See README and COPYING for more details.00013 */00014
00015 #ifndef EAP_COMMON_H00016 #define EAP_COMMON_H00017
00018 #include "wpabuf.h"00019
00020 constu8 * eap_hdr_validate(int vendor, EapType eap_type,
00021 conststructwpabuf *msg, size_t *plen);
00022 struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
00023 u8 code, u8 identifier);
00024 voideap_update_len(structwpabuf *msg);
00025 u8eap_get_id(conststructwpabuf *msg);
00026 EapTypeeap_get_type(conststructwpabuf *msg);
00027
00028 #endif /* EAP_COMMON_H */