eap_tlv.h File Reference

EAP peer method: EAP-TLV (draft-josefsson-pppext-eap-tls-eap-07.txt). More...

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

Go to the source code of this file.

Defines

#define EAP_TLV_RESULT_TLV   3
#define EAP_TLV_NAK_TLV   4
#define EAP_TLV_CRYPTO_BINDING_TLV   5
#define EAP_TLV_CONNECTION_BINDING_TLV   6
#define EAP_TLV_VENDOR_SPECIFIC_TLV   7
#define EAP_TLV_URI_TLV   8
#define EAP_TLV_EAP_PAYLOAD_TLV   9
#define EAP_TLV_INTERMEDIATE_RESULT_TLV   10
#define EAP_TLV_PAC_TLV   11
#define EAP_TLV_CRYPTO_BINDING_TLV_   12
#define EAP_TLV_RESULT_SUCCESS   1
#define EAP_TLV_RESULT_FAILURE   2
#define EAP_TLV_TYPE_MANDATORY   0x8000
#define EAP_TLV_CRYPTO_BINDING_SUBTYPE_REQUEST   0
#define EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE   1

Functions

u8 * eap_tlv_build_nak (int id, u16 nak_type, size_t *resp_len)
 Build EAP-TLV NAK message.
u8 * eap_tlv_build_result (int id, u16 status, size_t *resp_len)
 Build EAP-TLV Result message.
int eap_tlv_process (struct eap_sm *sm, struct eap_method_ret *ret, const struct eap_hdr *hdr, u8 **resp, size_t *resp_len)
 Process a received EAP-TLV message and generate a response.

Variables

eap_tlv_hdr STRUCT_PACKED


Detailed Description

EAP peer method: EAP-TLV (draft-josefsson-pppext-eap-tls-eap-07.txt).

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_tlv.h.


Function Documentation

u8* eap_tlv_build_nak int  id,
u16  nak_type,
size_t *  resp_len
 

Build EAP-TLV NAK message.

Parameters:
id EAP identifier for the header
nak_type TLV type (EAP_TLV_*)
resp_len Buffer for returning the response length
Returns:
Buffer to the allocated EAP-TLV NAK message or NULL on failure
This funtion builds an EAP-TLV NAK message. The caller is responsible for freeing the returned buffer.

Definition at line 34 of file eap_tlv.c.

Here is the call graph for this function:

u8* eap_tlv_build_result int  id,
u16  status,
size_t *  resp_len
 

Build EAP-TLV Result message.

Parameters:
id EAP identifier for the header
status Status (EAP_TLV_RESULT_SUCCESS or EAP_TLV_RESULT_FAILURE)
resp_len Buffer for returning the response length
Returns:
Buffer to the allocated EAP-TLV Result message or NULL on failure
This funtion builds an EAP-TLV Result message. The caller is responsible for freeing the returned buffer.

Definition at line 72 of file eap_tlv.c.

Here is the call graph for this function:

int eap_tlv_process struct eap_sm sm,
struct eap_method_ret ret,
const struct eap_hdr *  hdr,
u8 **  resp,
size_t *  resp_len
 

Process a received EAP-TLV message and generate a response.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
ret Return values from EAP request validation and processing
hdr EAP-TLV request to be processed. The caller must have validated that the buffer is large enough to contain full request (hdr->length bytes) and that the EAP type is EAP_TYPE_TLV.
resp Buffer to return a pointer to the allocated response message. This field should be initialized to NULL before the call. The value will be updated if a response message is generated. The caller is responsible for freeing the allocated message.
resp_len Buffer for returning the response length
Returns:
0 on success, -1 on failure

Definition at line 109 of file eap_tlv.c.

Here is the call graph for this function:


Generated on Sun Dec 31 13:51:59 2006 for wpa_supplicant by  doxygen 1.4.2