Classes | Defines | Functions | Variables
eapol_test.c File Reference
#include "includes.h"
#include <assert.h>
#include "common.h"
#include "config.h"
#include "eapol_supp/eapol_supp_sm.h"
#include "eap_peer/eap.h"
#include "eloop.h"
#include "rsn_supp/wpa.h"
#include "eap_peer/eap_i.h"
#include "wpa_supplicant_i.h"
#include "radius/radius.h"
#include "radius/radius_client.h"
#include "ctrl_iface.h"
#include "pcsc_funcs.h"
Include dependency graph for eapol_test.c:

Go to the source code of this file.

Classes

struct  eapol_test_data
struct  extra_radius_attr

Defines

#define AKA_AUTN_LEN   16
#define AKA_AUTS_LEN   14
#define AKA_RAND_LEN   16
#define CK_LEN   16
#define IK_LEN   16
#define num_triplets   5
#define RES_MAX_LEN   16

Functions

static int add_extra_attr (struct radius_msg *msg, struct extra_radius_attr *attr)
static int add_extra_attrs (struct radius_msg *msg, struct extra_radius_attr *attrs)
static char * eap_type_text (u8 type)
static void eapol_sm_cb (struct eapol_sm *eapol, int success, void *ctx)
static void eapol_sm_reauth (void *eloop_ctx, void *timeout_ctx)
static int eapol_test_compare_pmk (struct eapol_test_data *e)
static void eapol_test_eapol_done_cb (void *ctx)
static int eapol_test_eapol_send (void *ctx, int type, const u8 *buf, size_t len)
static struct wpa_config_blobeapol_test_get_config_blob (void *ctx, const char *name)
static void eapol_test_set_config_blob (void *ctx, struct wpa_config_blob *blob)
static void eapol_test_terminate (int sig, void *signal_ctx)
static void eapol_test_timeout (void *eloop_ctx, void *timeout_ctx)
static struct extra_radius_attrfind_extra_attr (struct extra_radius_attr *attrs, u8 type)
static void hostapd_logger_cb (void *ctx, const u8 *addr, unsigned int module, int level, const char *txt, size_t len)
static void ieee802_1x_decapsulate_radius (struct eapol_test_data *e)
static void ieee802_1x_encapsulate_radius (struct eapol_test_data *e, const u8 *eap, size_t len)
static void ieee802_1x_get_keys (struct eapol_test_data *e, struct radius_msg *msg, struct radius_msg *req, const u8 *shared_secret, size_t shared_secret_len)
static RadiusRxResult ieee802_1x_receive_auth (struct radius_msg *msg, struct radius_msg *req, const u8 *shared_secret, size_t shared_secret_len, void *data)
int main (int argc, char *argv[])
static int scard_get_triplets (int argc, char *argv[])
static int scard_test (void)
static void send_eap_request_identity (void *eloop_ctx, void *timeout_ctx)
static int test_eapol (struct eapol_test_data *e, struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
static void test_eapol_clean (struct eapol_test_data *e, struct wpa_supplicant *wpa_s)
static void usage (void)
static void wpa_init_conf (struct eapol_test_data *e, struct wpa_supplicant *wpa_s, const char *authsrv, int port, const char *secret, const char *cli_addr)

Variables

static struct eapol_test_data eapol_test
int wpa_debug_level
int wpa_debug_show_keys
struct wpa_driver_opswpa_drivers [] = { NULL }

Define Documentation

#define AKA_AUTN_LEN   16
#define AKA_AUTS_LEN   14
#define AKA_RAND_LEN   16
#define CK_LEN   16
#define IK_LEN   16
#define num_triplets   5
#define RES_MAX_LEN   16

Function Documentation

static int add_extra_attr ( struct radius_msg msg,
struct extra_radius_attr attr 
) [static]

Definition at line 96 of file eapol_test.c.

static int add_extra_attrs ( struct radius_msg msg,
struct extra_radius_attr attrs 
) [static]

Definition at line 147 of file eapol_test.c.

static char* eap_type_text ( u8  type) [static]

Definition at line 505 of file eapol_test.c.

static void eapol_sm_cb ( struct eapol_sm eapol,
int  success,
void *  ctx 
) [static]

Definition at line 371 of file eapol_test.c.

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

Definition at line 326 of file eapol_test.c.

static int eapol_test_compare_pmk ( struct eapol_test_data e) [static]

Definition at line 335 of file eapol_test.c.

static void eapol_test_eapol_done_cb ( void *  ctx) [static]

Definition at line 320 of file eapol_test.c.

static int eapol_test_eapol_send ( void *  ctx,
int  type,
const u8 *  buf,
size_t  len 
) [static]

Definition at line 290 of file eapol_test.c.

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

Definition at line 313 of file eapol_test.c.

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

Definition at line 304 of file eapol_test.c.

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

Definition at line 952 of file eapol_test.c.

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

Definition at line 496 of file eapol_test.c.

static struct extra_radius_attr* find_extra_attr ( struct extra_radius_attr attrs,
u8  type 
) [static, read]

Definition at line 160 of file eapol_test.c.

static void hostapd_logger_cb ( void *  ctx,
const u8 *  addr,
unsigned int  module,
int  level,
const char *  txt,
size_t  len 
) [static]

Definition at line 85 of file eapol_test.c.

static void ieee802_1x_decapsulate_radius ( struct eapol_test_data e) [static]

Definition at line 526 of file eapol_test.c.

static void ieee802_1x_encapsulate_radius ( struct eapol_test_data e,
const u8 *  eap,
size_t  len 
) [static]

Definition at line 171 of file eapol_test.c.

static void ieee802_1x_get_keys ( struct eapol_test_data e,
struct radius_msg msg,
struct radius_msg req,
const u8 *  shared_secret,
size_t  shared_secret_len 
) [static]

Definition at line 614 of file eapol_test.c.

static RadiusRxResult ieee802_1x_receive_auth ( struct radius_msg msg,
struct radius_msg req,
const u8 *  shared_secret,
size_t  shared_secret_len,
void *  data 
) [static]

Definition at line 663 of file eapol_test.c.

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

Definition at line 1007 of file eapol_test.c.

static int scard_get_triplets ( int  argc,
char *  argv[] 
) [static]

Definition at line 887 of file eapol_test.c.

static int scard_test ( void  ) [static]

Definition at line 781 of file eapol_test.c.

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

Definition at line 471 of file eapol_test.c.

static int test_eapol ( struct eapol_test_data e,
struct wpa_supplicant wpa_s,
struct wpa_ssid ssid 
) [static]

Definition at line 385 of file eapol_test.c.

static void test_eapol_clean ( struct eapol_test_data e,
struct wpa_supplicant wpa_s 
) [static]

Definition at line 436 of file eapol_test.c.

static void usage ( void  ) [static]

Definition at line 960 of file eapol_test.c.

static void wpa_init_conf ( struct eapol_test_data e,
struct wpa_supplicant wpa_s,
const char *  authsrv,
int  port,
const char *  secret,
const char *  cli_addr 
) [static]

Definition at line 722 of file eapol_test.c.


Variable Documentation

struct eapol_test_data eapol_test [static]

Definition at line 79 of file eapol_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 38 of file eapol_test.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:41