Functions
wpa_ie.c File Reference
#include "includes.h"
#include "common.h"
#include "wpa.h"
#include "pmksa_cache.h"
#include "common/ieee802_11_defs.h"
#include "wpa_i.h"
#include "wpa_ie.h"
Include dependency graph for wpa_ie.c:

Go to the source code of this file.

Functions

int wpa_gen_wpa_ie (struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len)
static int wpa_gen_wpa_ie_rsn (u8 *rsn_ie, size_t rsn_ie_len, int pairwise_cipher, int group_cipher, int key_mgmt, int mgmt_group_cipher, struct wpa_sm *sm)
static int wpa_gen_wpa_ie_wpa (u8 *wpa_ie, size_t wpa_ie_len, int pairwise_cipher, int group_cipher, int key_mgmt)
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_wpa_ie (const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ie_data *data)
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_supplicant_parse_ies (const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie)

Function Documentation

int wpa_gen_wpa_ie ( struct wpa_sm sm,
u8 *  wpa_ie,
size_t  wpa_ie_len 
)

wpa_gen_wpa_ie - Generate WPA/RSN IE based on current security policy : Pointer to WPA state machine data from wpa_sm_init() : Pointer to memory area for the generated WPA/RSN IE : Maximum length of the generated WPA/RSN IE Returns: Length of the generated WPA/RSN IE or -1 on failure

Definition at line 384 of file wpa_ie.c.

static int wpa_gen_wpa_ie_rsn ( u8 *  rsn_ie,
size_t  rsn_ie_len,
int  pairwise_cipher,
int  group_cipher,
int  key_mgmt,
int  mgmt_group_cipher,
struct wpa_sm sm 
) [static]

Definition at line 254 of file wpa_ie.c.

static int wpa_gen_wpa_ie_wpa ( u8 *  wpa_ie,
size_t  wpa_ie_len,
int  pairwise_cipher,
int  group_cipher,
int  key_mgmt 
) [static]

Definition at line 182 of file wpa_ie.c.

static int wpa_key_mgmt_to_bitfield ( const u8 *  s) [static]

Definition at line 41 of file wpa_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 407 of file wpa_ie.c.

int wpa_parse_wpa_ie ( const u8 *  wpa_ie,
size_t  wpa_ie_len,
struct wpa_ie_data data 
)

wpa_parse_wpa_ie - Parse WPA/RSN IE : Pointer to WPA or RSN IE : Length of the WPA/RSN IE : Pointer to data area for parsing results Returns: 0 on success, -1 on failure

Parse the contents of WPA or RSN IE and write the parsed data into data.

Definition at line 172 of file wpa_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 53 of file wpa_ie.c.

static int wpa_selector_to_bitfield ( const u8 *  s) [static]

Definition at line 25 of file wpa_ie.c.

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

wpa_supplicant_parse_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 511 of file wpa_ie.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:40