wpa_ie.c File Reference

wpa_supplicant - WPA/RSN IE and KDE processing More...

#include "includes.h"
#include "common.h"
#include "wpa.h"
#include "pmksa_cache.h"
#include "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_parse_wpa_ie (const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ie_data *data)
 Parse WPA/RSN IE.
int wpa_gen_wpa_ie (struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len)
 Generate WPA/RSN IE based on current security policy.
int wpa_supplicant_parse_ies (const u8 *buf, size_t len, struct wpa_eapol_ie_parse *ie)
 Parse EAPOL-Key Key Data IEs.

Detailed Description

wpa_supplicant - WPA/RSN IE and KDE processing

Copyright
Copyright (c) 2003-2008, Jouni Malinen <j@w1.fi>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file wpa_ie.c.


Function Documentation

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

Generate WPA/RSN IE based on current security policy.

Parameters:
sm Pointer to WPA state machine data from wpa_sm_init()
wpa_ie Pointer to memory area for the generated WPA/RSN IE
wpa_ie_len Maximum length of the generated WPA/RSN IE
Returns:
Length of the generated WPA/RSN IE or -1 on failure

Definition at line 385 of file wpa_ie.c.

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

Parse WPA/RSN IE.

Parameters:
wpa_ie Pointer to WPA or RSN IE
wpa_ie_len Length of the WPA/RSN IE
data 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 174 of file wpa_ie.c.

Here is the call graph for this function:

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

Parse EAPOL-Key Key Data IEs.

Parameters:
buf Pointer to the Key Data buffer
len Key Data Length
ie Pointer to parsed IE data
Returns:
0 on success, -1 on failure

Definition at line 496 of file wpa_ie.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:22:17 2009 for hostapd by  doxygen 1.6.1