diff options
author | Gregory Detal <gregory.detal@uclouvain.be> | 2010-04-07 11:13:14 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-04-07 11:13:14 +0300 |
commit | bb437f282b0db5b9581dd1469ccaf8a04a712fdb (patch) | |
tree | 40f6a1b662244276d3f95f4bc284f5b182acb537 /src/radius | |
parent | d9a27b04558ccbb5e5d45e10baa22db47e2b8e45 (diff) | |
download | external_wpa_supplicant_8_ti-bb437f282b0db5b9581dd1469ccaf8a04a712fdb.zip external_wpa_supplicant_8_ti-bb437f282b0db5b9581dd1469ccaf8a04a712fdb.tar.gz external_wpa_supplicant_8_ti-bb437f282b0db5b9581dd1469ccaf8a04a712fdb.tar.bz2 |
AP: Add wpa_msg() events for EAP server state machine
Diffstat (limited to 'src/radius')
-rw-r--r-- | src/radius/radius_server.c | 7 | ||||
-rw-r--r-- | src/radius/radius_server.h | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/radius/radius_server.c b/src/radius/radius_server.c index b1790c4..f8780a6 100644 --- a/src/radius/radius_server.c +++ b/src/radius/radius_server.c @@ -280,6 +280,11 @@ struct radius_server_data { * eap_req_id_text_len - Length of eap_req_id_text buffer in octets */ size_t eap_req_id_text_len; + + /* + * msg_ctx - Context data for wpa_msg() calls + */ + void *msg_ctx; }; @@ -486,6 +491,7 @@ radius_server_get_new_session(struct radius_server_data *data, os_memset(&eap_conf, 0, sizeof(eap_conf)); eap_conf.ssl_ctx = data->ssl_ctx; + eap_conf.msg_ctx = data->msg_ctx; eap_conf.eap_sim_db_priv = data->eap_sim_db_priv; eap_conf.backend_auth = TRUE; eap_conf.eap_server = 1; @@ -1229,6 +1235,7 @@ radius_server_init(struct radius_server_conf *conf) data->conf_ctx = conf->conf_ctx; data->eap_sim_db_priv = conf->eap_sim_db_priv; data->ssl_ctx = conf->ssl_ctx; + data->msg_ctx = conf->msg_ctx; data->ipv6 = conf->ipv6; if (conf->pac_opaque_encr_key) { data->pac_opaque_encr_key = os_malloc(16); diff --git a/src/radius/radius_server.h b/src/radius/radius_server.h index 43942de..f9c951d 100644 --- a/src/radius/radius_server.h +++ b/src/radius/radius_server.h @@ -189,6 +189,11 @@ struct radius_server_conf { * eap_req_id_text_len - Length of eap_req_id_text buffer in octets */ size_t eap_req_id_text_len; + + /* + * msg_ctx - Context data for wpa_msg() calls + */ + void *msg_ctx; }; |