eap_tls_common.h File Reference

WPA Supplicant / EAP-TLS/PEAP/TTLS/FAST common functions. More...

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

Go to the source code of this file.

Defines

#define EAP_TLS_FLAGS_LENGTH_INCLUDED   0x80
#define EAP_TLS_FLAGS_MORE_FRAGMENTS   0x40
#define EAP_TLS_FLAGS_START   0x20
#define EAP_PEAP_VERSION_MASK   0x07
#define EAP_TLS_KEY_LEN   64

Functions

int eap_tls_ssl_init (struct eap_sm *sm, struct eap_ssl_data *data, struct wpa_ssid *config)
void eap_tls_ssl_deinit (struct eap_sm *sm, struct eap_ssl_data *data)
u8 * eap_tls_derive_key (struct eap_sm *sm, struct eap_ssl_data *data, char *label, size_t len)
const u8 * eap_tls_data_reassemble (struct eap_sm *sm, struct eap_ssl_data *data, const u8 *in_data, size_t in_len, size_t *out_len, int *need_more_input)
 Reassemble TLS data.
int eap_tls_process_helper (struct eap_sm *sm, struct eap_ssl_data *data, int eap_type, int peap_version, u8 id, const u8 *in_data, size_t in_len, u8 **out_data, size_t *out_len)
u8 * eap_tls_build_ack (struct eap_ssl_data *data, size_t *respDataLen, u8 id, int eap_type, int peap_version)
int eap_tls_reauth_init (struct eap_sm *sm, struct eap_ssl_data *data)
int eap_tls_status (struct eap_sm *sm, struct eap_ssl_data *data, char *buf, size_t buflen, int verbose)
const u8 * eap_tls_process_init (struct eap_sm *sm, struct eap_ssl_data *data, EapType eap_type, struct eap_method_ret *ret, const u8 *reqData, size_t reqDataLen, size_t *len, u8 *flags)


Detailed Description

WPA Supplicant / EAP-TLS/PEAP/TTLS/FAST common functions.

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


Function Documentation

const u8* eap_tls_data_reassemble struct eap_sm sm,
struct eap_ssl_data *  data,
const u8 *  in_data,
size_t  in_len,
size_t *  out_len,
int *  need_more_input
 

Reassemble TLS data.

Parameters:
sm Pointer to EAP state machine allocated with eap_sm_init()
data Data for TLS processing
in_data Next incoming TLS segment
in_len Length of in_data
out_len Variable for returning output data length
need_more_input Variable for returning whether more input data is needed to reassemble this TLS packet
Returns:
Pointer to output data or NULL on error
This function reassembles TLS fragments.

Definition at line 228 of file eap_tls_common.c.

Here is the call graph for this function:


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