eap_i.h File Reference

WPA Supplicant / EAP state machines internal structures (RFC 4137). More...

#include "eap.h"

Include dependency graph for eap_i.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  EapDecision { DECISION_FAIL, DECISION_COND_SUCC, DECISION_UNCOND_SUCC }
enum  EapMethodState {
  METHOD_NONE, METHOD_INIT, METHOD_CONT, METHOD_MAY_CONT,
  METHOD_DONE
}

Functions

const u8 * eap_hdr_validate (EapType eap_type, const u8 *msg, size_t msglen, size_t *plen)
 Validate EAP header.
void eap_set_config_blob (struct eap_sm *sm, struct wpa_config_blob *blob)
 Set or add a named configuration blob.
const struct wpa_config_blobeap_get_config_blob (struct eap_sm *sm, const char *name)
 Get a named configuration blob.


Detailed Description

WPA Supplicant / EAP state machines internal structures (RFC 4137).

Copyright
Copyright (c) 2004-2005, Jouni Malinen <[email protected]>
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 eap_i.h.


Function Documentation

const struct wpa_config_blob* eap_get_config_blob struct eap_sm sm,
const char *  name
 

Get a named configuration blob.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
name Name of the blob
Returns:
Pointer to blob data or NULL if not found

Definition at line 1934 of file eap.c.

const u8* eap_hdr_validate EapType  eap_type,
const u8 *  msg,
size_t  msglen,
size_t *  plen
 

Validate EAP header.

Parameters:
eap_type Expected EAP type number
msg EAP frame (starting with EAP header)
msglen Length of msg
plen Pointer to variable to contain the returned payload length
Returns:
Pointer to EAP payload (after type field), or NULL on failure
This is a helper function for EAP method implementations. This is usually called in the beginning of struct eap_method::process() function to verify that the received EAP request packet has a valid header.

Definition at line 1889 of file eap.c.

Here is the call graph for this function:

void eap_set_config_blob struct eap_sm sm,
struct wpa_config_blob blob
 

Set or add a named configuration blob.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
blob New value for the blob
Adds a new configuration blob or replaces the current value of an existing blob.

Definition at line 1921 of file eap.c.


Generated on Sat May 6 21:15:30 2006 for wpa_supplicant by  doxygen 1.4.2