]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
eap_proxy: Add context data pointer to the get_imsi call
authorNaresh Jayaram <c_njayar@qti.qualcomm.com>
Wed, 23 Oct 2013 16:19:25 +0000 (19:19 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 23 Oct 2013 17:51:46 +0000 (20:51 +0300)
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 <jouni@qca.qualcomm.com>

src/eap_peer/eap_proxy.h
src/eap_peer/eap_proxy_dummy.c
src/eapol_supp/eapol_supp_sm.c

index 3b4dceffcbbb4ff2fa1420117ecb9a1de6950e2a..23cdbe698b3cc2b145666c02daeabbb202cd790e 100644 (file)
@@ -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);
index cd97fb66daa69781b1fa36f1ce00ec92c2ef4a1e..d84f01234ed5b7f2ec073d04efefa669663224d7 100644 (file)
@@ -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;
 }
index d34df7c2fcb14364398917391d29f4af3d394972..9d7aef04bf5d0cc9fecde7497849ec334aa0168e 100644 (file)
@@ -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 */