~ubuntu-branches/ubuntu/utopic/moonshot-gss-eap/utopic-backports

« back to all changes in this revision

Viewing changes to libeap/src/eap_common/eap_common.h

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2014-09-16 08:38:39 UTC
  • Revision ID: package-import@ubuntu.com-20140916083839-ipqco3thb1wcwvs0
Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * EAP common peer/server definitions
 
3
 * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
 
4
 *
 
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.
 
8
 *
 
9
 * Alternatively, this software may be distributed under the terms of BSD
 
10
 * license.
 
11
 *
 
12
 * See README and COPYING for more details.
 
13
 */
 
14
 
 
15
#ifndef EAP_COMMON_H
 
16
#define EAP_COMMON_H
 
17
 
 
18
#include "wpabuf.h"
 
19
 
 
20
#ifdef __cplusplus
 
21
extern "C" {
 
22
#endif
 
23
 
 
24
const u8 * eap_hdr_validate(int vendor, EapType eap_type,
 
25
                            const struct wpabuf *msg, size_t *plen);
 
26
struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
 
27
                              u8 code, u8 identifier);
 
28
void eap_update_len(struct wpabuf *msg);
 
29
u8 eap_get_id(const struct wpabuf *msg);
 
30
EapType eap_get_type(const struct wpabuf *msg);
 
31
 
 
32
#ifdef __cplusplus
 
33
}
 
34
#endif
 
35
 
 
36
#endif /* EAP_COMMON_H */