$search

preauth_test.c File Reference

#include "includes.h"
#include <assert.h>
#include "common.h"
#include "config.h"
#include "eapol_supp/eapol_supp_sm.h"
#include "eloop.h"
#include "rsn_supp/wpa.h"
#include "eap_peer/eap.h"
#include "wpa_supplicant_i.h"
#include "l2_packet/l2_packet.h"
#include "ctrl_iface.h"
#include "pcsc_funcs.h"
#include "rsn_supp/preauth.h"
#include "rsn_supp/pmksa_cache.h"
#include "drivers/driver.h"
Include dependency graph for preauth_test.c:

Go to the source code of this file.

Classes

struct  preauth_test_data

Functions

static u8_wpa_alloc_eapol (void *wpa_s, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos)
static void _wpa_supplicant_cancel_auth_timeout (void *wpa_s)
static void _wpa_supplicant_deauthenticate (void *wpa_s, int reason_code)
static void _wpa_supplicant_disassociate (void *wpa_s, int reason_code)
static enum wpa_states _wpa_supplicant_get_state (void *ctx)
static void _wpa_supplicant_set_state (void *ctx, enum wpa_states state)
static void eapol_test_poll (void *eloop_ctx, void *timeout_ctx)
static void eapol_test_terminate (int sig, void *signal_ctx)
static void eapol_test_timeout (void *eloop_ctx, void *timeout_ctx)
int main (int argc, char *argv[])
static void test_eapol_clean (struct wpa_supplicant *wpa_s)
static u8wpa_alloc_eapol (const struct wpa_supplicant *wpa_s, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos)
static int wpa_ether_send (void *wpa_s, const u8 *dest, u16 proto, const u8 *buf, size_t len)
static void wpa_init_conf (struct wpa_supplicant *wpa_s, const char *ifname)
static int wpa_supplicant_add_pmkid (void *wpa_s, const u8 *bssid, const u8 *pmkid)
static int wpa_supplicant_get_beacon_ie (void *wpa_s)
static int wpa_supplicant_get_bssid (void *wpa_s, u8 *bssid)
static struct wpa_config_blobwpa_supplicant_get_config_blob (void *ctx, const char *name)
static void * wpa_supplicant_get_network_ctx (void *wpa_s)
static int wpa_supplicant_mlme_setprotection (void *wpa_s, const u8 *addr, int protection_type, int key_type)
static int wpa_supplicant_remove_pmkid (void *wpa_s, const u8 *bssid, const u8 *pmkid)
static void wpa_supplicant_set_config_blob (void *ctx, struct wpa_config_blob *blob)
static int wpa_supplicant_set_key (void *wpa_s, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len)

Variables

static struct wpa_driver_ops dummy_driver
int wpa_debug_level
int wpa_debug_show_keys
struct wpa_driver_opswpa_drivers [] = { NULL }

Function Documentation

static u8* _wpa_alloc_eapol ( void *  wpa_s,
u8  type,
const void *  data,
u16  data_len,
size_t *  msg_len,
void **  data_pos 
) [static]

Definition at line 86 of file preauth_test.c.

static void _wpa_supplicant_cancel_auth_timeout ( void *  wpa_s  )  [static]

Definition at line 122 of file preauth_test.c.

static void _wpa_supplicant_deauthenticate ( void *  wpa_s,
int  reason_code 
) [static]

Definition at line 53 of file preauth_test.c.

static void _wpa_supplicant_disassociate ( void *  wpa_s,
int  reason_code 
) [static]

Definition at line 47 of file preauth_test.c.

static enum wpa_states _wpa_supplicant_get_state ( void *  ctx  )  [static]

Definition at line 101 of file preauth_test.c.

static void _wpa_supplicant_set_state ( void *  ctx,
enum wpa_states  state 
) [static]

Definition at line 94 of file preauth_test.c.

static void eapol_test_poll ( void *  eloop_ctx,
void *  timeout_ctx 
) [static]

Definition at line 216 of file preauth_test.c.

static void eapol_test_terminate ( int  sig,
void *  signal_ctx 
) [static]

Definition at line 280 of file preauth_test.c.

static void eapol_test_timeout ( void *  eloop_ctx,
void *  timeout_ctx 
) [static]

Definition at line 207 of file preauth_test.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 288 of file preauth_test.c.

static void test_eapol_clean ( struct wpa_supplicant wpa_s  )  [static]

Definition at line 193 of file preauth_test.c.

static u8* wpa_alloc_eapol ( const struct wpa_supplicant wpa_s,
u8  type,
const void *  data,
u16  data_len,
size_t *  msg_len,
void **  data_pos 
) [static]

Definition at line 59 of file preauth_test.c.

static int wpa_ether_send ( void *  wpa_s,
const u8 dest,
u16  proto,
const u8 buf,
size_t  len 
) [static]

Definition at line 108 of file preauth_test.c.

static void wpa_init_conf ( struct wpa_supplicant wpa_s,
const char *  ifname 
) [static]

Definition at line 231 of file preauth_test.c.

static int wpa_supplicant_add_pmkid ( void *  wpa_s,
const u8 bssid,
const u8 pmkid 
) [static]

Definition at line 161 of file preauth_test.c.

static int wpa_supplicant_get_beacon_ie ( void *  wpa_s  )  [static]

Definition at line 128 of file preauth_test.c.

static int wpa_supplicant_get_bssid ( void *  wpa_s,
u8 bssid 
) [static]

Definition at line 135 of file preauth_test.c.

static struct wpa_config_blob* wpa_supplicant_get_config_blob ( void *  ctx,
const char *  name 
) [static, read]

Definition at line 186 of file preauth_test.c.

static void* wpa_supplicant_get_network_ctx ( void *  wpa_s  )  [static]

Definition at line 116 of file preauth_test.c.

static int wpa_supplicant_mlme_setprotection ( void *  wpa_s,
const u8 addr,
int  protection_type,
int  key_type 
) [static]

Definition at line 152 of file preauth_test.c.

static int wpa_supplicant_remove_pmkid ( void *  wpa_s,
const u8 bssid,
const u8 pmkid 
) [static]

Definition at line 169 of file preauth_test.c.

static void wpa_supplicant_set_config_blob ( void *  ctx,
struct wpa_config_blob blob 
) [static]

Definition at line 177 of file preauth_test.c.

static int wpa_supplicant_set_key ( void *  wpa_s,
enum wpa_alg  alg,
const u8 addr,
int  key_idx,
int  set_tx,
const u8 seq,
size_t  seq_len,
const u8 key,
size_t  key_len 
) [static]

Definition at line 142 of file preauth_test.c.


Variable Documentation

struct wpa_driver_ops dummy_driver [static]

Definition at line 228 of file preauth_test.c.

Definition at line 29 of file wpa_debug.c.

Definition at line 30 of file wpa_debug.c.

struct wpa_driver_ops* wpa_drivers[] = { NULL }

Definition at line 39 of file preauth_test.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Mar 1 16:00:34 2013