diff options
author | Jouni Malinen <j@w1.fi> | 2008-05-28 17:15:17 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-05-28 17:15:17 +0300 |
commit | cda97d11bb4a0fe73b090b852d48e670ad220ab4 (patch) | |
tree | 58e4d0b51f93aadc0b40917c0a397ac2d4692579 /src/eap_server/eap_tls_common.h | |
parent | 3c724cc564911f9ef217f24dac1fa2b2d8f7d31c (diff) | |
download | external_wpa_supplicant_8_ti-cda97d11bb4a0fe73b090b852d48e670ad220ab4.zip external_wpa_supplicant_8_ti-cda97d11bb4a0fe73b090b852d48e670ad220ab4.tar.gz external_wpa_supplicant_8_ti-cda97d11bb4a0fe73b090b852d48e670ad220ab4.tar.bz2 |
Share EAP-TLS/PEAP/TTLS/FAST core process() functionality
Move the basic processing of received frames into eap_tls_common.c and use
callback functions to handle EAP type specific processing of the version
field and payload.
Diffstat (limited to 'src/eap_server/eap_tls_common.h')
-rw-r--r-- | src/eap_server/eap_tls_common.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/eap_server/eap_tls_common.h b/src/eap_server/eap_tls_common.h index 424925c..ce8dd25 100644 --- a/src/eap_server/eap_tls_common.h +++ b/src/eap_server/eap_tls_common.h @@ -51,11 +51,14 @@ struct wpabuf * eap_server_tls_build_msg(struct eap_ssl_data *data, int eap_type, int version, u8 id); struct wpabuf * eap_server_tls_build_ack(u8 id, int eap_type, int version); int eap_server_tls_phase1(struct eap_sm *sm, struct eap_ssl_data *data); -int eap_server_tls_reassemble(struct eap_ssl_data *data, u8 flags, - const u8 **pos, size_t *left); -void eap_server_tls_free_in_buf(struct eap_ssl_data *data); struct wpabuf * eap_server_tls_encrypt(struct eap_sm *sm, struct eap_ssl_data *data, const u8 *plain, size_t plain_len); +int eap_server_tls_process(struct eap_sm *sm, struct eap_ssl_data *data, + struct wpabuf *respData, void *priv, int eap_type, + int (*proc_version)(struct eap_sm *sm, void *priv, + int peer_version), + void (*proc_msg)(struct eap_sm *sm, void *priv, + const struct wpabuf *respData)); #endif /* EAP_TLS_COMMON_H */ |