Classes | Defines | Functions
eap_server_tnc.c File Reference
#include "includes.h"
#include "common.h"
#include "base64.h"
#include "eap_i.h"
#include "tncs.h"
Include dependency graph for eap_server_tnc.c:

Go to the source code of this file.

Classes

struct  eap_tnc_data

Defines

#define EAP_TNC_FLAGS_LENGTH_INCLUDED   0x80
#define EAP_TNC_FLAGS_MORE_FRAGMENTS   0x40
#define EAP_TNC_FLAGS_START   0x20
#define EAP_TNC_VERSION   1
#define EAP_TNC_VERSION_MASK   0x07

Functions

int eap_server_tnc_register (void)
static struct wpabufeap_tnc_build (struct eap_sm *sm, struct eap_tnc_data *data)
static struct wpabufeap_tnc_build_frag_ack (u8 id, u8 code)
static struct wpabufeap_tnc_build_msg (struct eap_tnc_data *data, u8 id)
static struct wpabufeap_tnc_build_recommendation (struct eap_sm *sm, struct eap_tnc_data *data)
static struct wpabufeap_tnc_build_start (struct eap_sm *sm, struct eap_tnc_data *data, u8 id)
static struct wpabufeap_tnc_buildReq (struct eap_sm *sm, void *priv, u8 id)
static Boolean eap_tnc_check (struct eap_sm *sm, void *priv, struct wpabuf *respData)
static void * eap_tnc_init (struct eap_sm *sm)
static Boolean eap_tnc_isDone (struct eap_sm *sm, void *priv)
static Boolean eap_tnc_isSuccess (struct eap_sm *sm, void *priv)
static void eap_tnc_process (struct eap_sm *sm, void *priv, struct wpabuf *respData)
static int eap_tnc_process_cont (struct eap_tnc_data *data, const u8 *buf, size_t len)
static int eap_tnc_process_fragment (struct eap_tnc_data *data, u8 flags, u32 message_length, const u8 *buf, size_t len)
static void eap_tnc_reset (struct eap_sm *sm, void *priv)
static void eap_tnc_set_state (struct eap_tnc_data *data, enum eap_tnc_state new_state)
static const char * eap_tnc_state_txt (enum eap_tnc_state state)
static void tncs_process (struct eap_tnc_data *data, struct wpabuf *inbuf)

Define Documentation

#define EAP_TNC_FLAGS_LENGTH_INCLUDED   0x80

Definition at line 40 of file eap_server_tnc.c.

#define EAP_TNC_FLAGS_MORE_FRAGMENTS   0x40

Definition at line 41 of file eap_server_tnc.c.

#define EAP_TNC_FLAGS_START   0x20

Definition at line 42 of file eap_server_tnc.c.

#define EAP_TNC_VERSION   1

Definition at line 45 of file eap_server_tnc.c.

#define EAP_TNC_VERSION_MASK   0x07

Definition at line 43 of file eap_server_tnc.c.


Function Documentation

int eap_server_tnc_register ( void  )

Definition at line 559 of file eap_server_tnc.c.

static struct wpabuf* eap_tnc_build ( struct eap_sm sm,
struct eap_tnc_data data 
) [static, read]

Definition at line 132 of file eap_server_tnc.c.

static struct wpabuf* eap_tnc_build_frag_ack ( u8  id,
u8  code 
) [static, read]

Definition at line 206 of file eap_server_tnc.c.

static struct wpabuf* eap_tnc_build_msg ( struct eap_tnc_data data,
u8  id 
) [static, read]

Definition at line 224 of file eap_server_tnc.c.

static struct wpabuf* eap_tnc_build_recommendation ( struct eap_sm sm,
struct eap_tnc_data data 
) [static, read]

Definition at line 180 of file eap_server_tnc.c.

static struct wpabuf* eap_tnc_build_start ( struct eap_sm sm,
struct eap_tnc_data data,
u8  id 
) [static, read]

Definition at line 110 of file eap_server_tnc.c.

static struct wpabuf* eap_tnc_buildReq ( struct eap_sm sm,
void *  priv,
u8  id 
) [static, read]

Definition at line 286 of file eap_server_tnc.c.

static Boolean eap_tnc_check ( struct eap_sm sm,
void *  priv,
struct wpabuf respData 
) [static]

Definition at line 329 of file eap_server_tnc.c.

static void* eap_tnc_init ( struct eap_sm sm) [static]

Definition at line 80 of file eap_server_tnc.c.

static Boolean eap_tnc_isDone ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 545 of file eap_server_tnc.c.

static Boolean eap_tnc_isSuccess ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 552 of file eap_server_tnc.c.

static void eap_tnc_process ( struct eap_sm sm,
void *  priv,
struct wpabuf respData 
) [static]

Definition at line 452 of file eap_server_tnc.c.

static int eap_tnc_process_cont ( struct eap_tnc_data data,
const u8 *  buf,
size_t  len 
) [static]

Definition at line 403 of file eap_server_tnc.c.

static int eap_tnc_process_fragment ( struct eap_tnc_data data,
u8  flags,
u32  message_length,
const u8 *  buf,
size_t  len 
) [static]

Definition at line 422 of file eap_server_tnc.c.

static void eap_tnc_reset ( struct eap_sm sm,
void *  priv 
) [static]

Definition at line 100 of file eap_server_tnc.c.

static void eap_tnc_set_state ( struct eap_tnc_data data,
enum eap_tnc_state  new_state 
) [static]

Definition at line 70 of file eap_server_tnc.c.

static const char* eap_tnc_state_txt ( enum eap_tnc_state  state) [static]

Definition at line 48 of file eap_server_tnc.c.

static void tncs_process ( struct eap_tnc_data data,
struct wpabuf inbuf 
) [static]

Definition at line 366 of file eap_server_tnc.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:25:17