aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer
diff options
context:
space:
mode:
authorPurushottam Kushwaha <pkushwah@qti.qualcomm.com>2016-12-13 13:00:21 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-19 20:21:07 (GMT)
commita6f3761f7d4c4293936386df01fc99d577b71bf9 (patch)
tree199214139bc70631bbac6c1fc92b1685e85ec96d /src/eap_peer
parent79a54ab9f65448a9f3f8f149da5379614ad7bdca (diff)
downloadhostap-a6f3761f7d4c4293936386df01fc99d577b71bf9.zip
hostap-a6f3761f7d4c4293936386df01fc99d577b71bf9.tar.gz
hostap-a6f3761f7d4c4293936386df01fc99d577b71bf9.tar.bz2
eap_proxy: Add support for SIM state change indication from eap_proxy
This registers a new callback to indicate change in SIM state. This helps to do some clean up (more specifically pmksa_flush) based on the state change of the SIM. Without this, the reconnection using the cached PMKSA could happen though the SIM is changed. Currently eap_proxy_sim_state corresponds to only SIM_STATE_ERROR. This can be further extended. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/eap_peer')
-rw-r--r--src/eap_peer/eap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eap_peer/eap.h b/src/eap_peer/eap.h
index 7b013ee..932584f 100644
--- a/src/eap_peer/eap.h
+++ b/src/eap_peer/eap.h
@@ -252,6 +252,14 @@ struct eapol_callbacks {
* @ctx: eapol_ctx from eap_peer_sm_init() call
*/
void (*eap_proxy_cb)(void *ctx);
+
+ /**
+ * eap_proxy_notify_sim_status - Notification of SIM status change
+ * @ctx: eapol_ctx from eap_peer_sm_init() call
+ * @sim_state: One of enum value from sim_state
+ */
+ void (*eap_proxy_notify_sim_status)(void *ctx,
+ enum eap_proxy_sim_state sim_state);
#endif /* CONFIG_EAP_PROXY */
/**