eap_i.h File Reference

hostapd / EAP Authenticator state machine internal structures (RFC 4137) More...

#include "wpabuf.h"
#include "eap_server/eap.h"
#include "eap_common/eap_common.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.

Data Structures

struct  eap_method
 EAP method interface. More...
struct  eap_sm
 EAP server state machine data. More...

Defines

#define EAP_SERVER_METHOD_INTERFACE_VERSION   1

Functions

int eap_user_get (struct eap_sm *sm, const u8 *identity, size_t identity_len, int phase2)
 Fetch user information from the database.
void eap_sm_process_nak (struct eap_sm *sm, const u8 *nak_list, size_t len)
 Process EAP-Response/Nak.

Detailed Description

hostapd / EAP Authenticator state machine internal structures (RFC 4137)

Copyright
Copyright (c) 2004-2007, 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 eap_i.h.


Function Documentation

void eap_sm_process_nak ( struct eap_sm sm,
const u8 *  nak_list,
size_t  len 
)

Process EAP-Response/Nak.

Parameters:
sm Pointer to EAP state machine allocated with eap_server_sm_init()
nak_list Nak list (allowed methods) from the supplicant
len Length of nak_list in bytes

This function is called when EAP-Response/Nak is received from the supplicant. This can happen for both phase 1 and phase 2 authentications.

Definition at line 981 of file eap.c.

Here is the call graph for this function:

int eap_user_get ( struct eap_sm sm,
const u8 *  identity,
size_t  identity_len,
int  phase2 
)

Fetch user information from the database.

Parameters:
sm Pointer to EAP state machine allocated with eap_server_sm_init()
identity Identity (User-Name) of the user
identity_len Length of identity in bytes
phase2 0 = EAP phase1 user, 1 = EAP phase2 (tunneled) user
Returns:
0 on success, or -1 on failure

This function is used to fetch user information for EAP. The user will be selected based on the specified identity. sm->user and sm->user_eap_method_index are updated for the new user when a matching user is found. sm->user can be used to get user information (e.g., password).

Definition at line 100 of file eap.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:21:26 2009 for hostapd by  doxygen 1.6.1