wpa_auth_ie.c File Reference

#include "utils/includes.h"
#include "utils/common.h"
#include "common/ieee802_11_defs.h"
#include "eapol_auth/eapol_auth_sm.h"
#include "ap_config.h"
#include "ieee802_11.h"
#include "wpa_auth.h"
#include "pmksa_cache_auth.h"
#include "wpa_auth_ie.h"
#include "wpa_auth_i.h"
Include dependency graph for wpa_auth_ie.c:

Go to the source code of this file.

Classes

struct  wpa_auth_okc_iter_data

Functions

u8wpa_add_kde (u8 *pos, u32 kde, const u8 *data, size_t data_len, const u8 *data2, size_t data2_len)
int wpa_auth_gen_wpa_ie (struct wpa_authenticator *wpa_auth)
static int wpa_auth_okc_iter (struct wpa_authenticator *a, void *ctx)
int wpa_auth_uses_mfp (struct wpa_state_machine *sm)
static int wpa_key_mgmt_to_bitfield (const u8 *s)
static int wpa_parse_generic (const u8 *pos, const u8 *end, struct wpa_eapol_ie_parse *ie)
int wpa_parse_kde_ies (const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie)
static int wpa_parse_wpa_ie_wpa (const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ie_data *data)
static int wpa_selector_to_bitfield (const u8 *s)
int wpa_validate_wpa_ie (struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len)
int wpa_write_rsn_ie (struct wpa_auth_config *conf, u8 *buf, size_t len, const u8 *pmkid)
static int wpa_write_wpa_ie (struct wpa_auth_config *conf, u8 *buf, size_t len)

Function Documentation

u8* wpa_add_kde ( u8 pos,
u32  kde,
const u8 data,
size_t  data_len,
const u8 data2,
size_t  data2_len 
)

Definition at line 308 of file wpa_auth_ie.c.

int wpa_auth_gen_wpa_ie ( struct wpa_authenticator wpa_auth  ) 

Definition at line 265 of file wpa_auth_ie.c.

static int wpa_auth_okc_iter ( struct wpa_authenticator a,
void *  ctx 
) [static]

Definition at line 441 of file wpa_auth_ie.c.

int wpa_auth_uses_mfp ( struct wpa_state_machine sm  ) 

Definition at line 865 of file wpa_auth_ie.c.

static int wpa_key_mgmt_to_bitfield ( const u8 s  )  [static]

Definition at line 341 of file wpa_auth_ie.c.

static int wpa_parse_generic ( const u8 pos,
const u8 end,
struct wpa_eapol_ie_parse ie 
) [static]

wpa_parse_generic - Parse EAPOL-Key Key Data Generic IEs : Pointer to the IE header : Pointer to the end of the Key Data buffer : Pointer to parsed IE data Returns: 0 on success, 1 if end mark is found, -1 on failure

Definition at line 729 of file wpa_auth_ie.c.

int wpa_parse_kde_ies ( const u8 buf,
size_t  len,
struct wpa_eapol_ie_parse ie 
)

wpa_parse_kde_ies - Parse EAPOL-Key Key Data IEs : Pointer to the Key Data buffer : Key Data Length : Pointer to parsed IE data Returns: 0 on success, -1 on failure

Definition at line 815 of file wpa_auth_ie.c.

static int wpa_parse_wpa_ie_wpa ( const u8 wpa_ie,
size_t  wpa_ie_len,
struct wpa_ie_data data 
) [static]

Definition at line 353 of file wpa_auth_ie.c.

static int wpa_selector_to_bitfield ( const u8 s  )  [static]

Definition at line 325 of file wpa_auth_ie.c.

int wpa_validate_wpa_ie ( struct wpa_authenticator wpa_auth,
struct wpa_state_machine sm,
const u8 wpa_ie,
size_t  wpa_ie_len,
const u8 mdie,
size_t  mdie_len 
)

Definition at line 452 of file wpa_auth_ie.c.

int wpa_write_rsn_ie ( struct wpa_auth_config conf,
u8 buf,
size_t  len,
const u8 pmkid 
)

Definition at line 112 of file wpa_auth_ie.c.

static int wpa_write_wpa_ie ( struct wpa_auth_config conf,
u8 buf,
size_t  len 
) [static]

Definition at line 28 of file wpa_auth_ie.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:02:40 2013