From fa56315cfc9ebaff2b210ed99d43dda9b16bdf56 Mon Sep 17 00:00:00 2001 From: Naresh Jayaram Date: Wed, 23 Oct 2013 19:19:25 +0300 Subject: [PATCH] eap_proxy: Add context data pointer to the get_imsi call This was already included in all the other calls to eap_proxy, but somehow the get_imsi call had been forgotten. Signed-hostap: Jouni Malinen --- src/eap_peer/eap_proxy.h | 3 ++- src/eap_peer/eap_proxy_dummy.c | 3 ++- src/eapol_supp/eapol_supp_sm.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/eap_peer/eap_proxy.h b/src/eap_peer/eap_proxy.h index 3b4dceffc..23cdbe698 100644 --- a/src/eap_peer/eap_proxy.h +++ b/src/eap_peer/eap_proxy.h @@ -40,7 +40,8 @@ eap_proxy_packet_update(struct eap_proxy_sm *eap_proxy, u8 *eapReqData, int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen, int verbose); -int eap_proxy_get_imsi(char *imsi_buf, size_t *imsi_len); +int eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, char *imsi_buf, + size_t *imsi_len); int eap_proxy_notify_config(struct eap_proxy_sm *sm, struct eap_peer_config *config); diff --git a/src/eap_peer/eap_proxy_dummy.c b/src/eap_peer/eap_proxy_dummy.c index cd97fb66d..d84f01234 100644 --- a/src/eap_peer/eap_proxy_dummy.c +++ b/src/eap_peer/eap_proxy_dummy.c @@ -63,7 +63,8 @@ int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen, } -int eap_proxy_get_imsi(char *imsi_buf, size_t *imsi_len) +int eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, char *imsi_buf, + size_t *imsi_len) { return -1; } diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c index d34df7c2f..9d7aef04b 100644 --- a/src/eapol_supp/eapol_supp_sm.c +++ b/src/eapol_supp/eapol_supp_sm.c @@ -2058,7 +2058,7 @@ int eapol_sm_get_eap_proxy_imsi(struct eapol_sm *sm, char *imsi, size_t *len) #ifdef CONFIG_EAP_PROXY if (sm->eap_proxy == NULL) return -1; - return eap_proxy_get_imsi(imsi, len); + return eap_proxy_get_imsi(sm->eap_proxy, imsi, len); #else /* CONFIG_EAP_PROXY */ return -1; #endif /* CONFIG_EAP_PROXY */