diff options
author | Jouni Malinen <j@w1.fi> | 2008-11-28 20:02:32 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-11-28 20:02:32 +0200 |
commit | bcbbc7af45cc4b84a5c10e65f4283fdf68cd785a (patch) | |
tree | 7d110829491964ba3094be1adab76dfd1bfc8b93 /src/eapol_supp | |
parent | fa201b694f55194331d99877b6c64058c1ebd990 (diff) | |
download | external_wpa_supplicant_8_ti-bcbbc7af45cc4b84a5c10e65f4283fdf68cd785a.zip external_wpa_supplicant_8_ti-bcbbc7af45cc4b84a5c10e65f4283fdf68cd785a.tar.gz external_wpa_supplicant_8_ti-bcbbc7af45cc4b84a5c10e65f4283fdf68cd785a.tar.bz2 |
WPS: Merged two cred_cb variables into the same one
Previously, wpa_supplicant as Enrollee case was handled using a
different callback function pointer. However, now that the wps_context
structure is allocated for all cases, the same variable can be used in
all cases.
Diffstat (limited to 'src/eapol_supp')
-rw-r--r-- | src/eapol_supp/eapol_supp_sm.c | 2 | ||||
-rw-r--r-- | src/eapol_supp/eapol_supp_sm.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c index 3ae5e15..5c06987 100644 --- a/src/eapol_supp/eapol_supp_sm.c +++ b/src/eapol_supp/eapol_supp_sm.c @@ -1743,7 +1743,7 @@ static void eapol_sm_notify_pending(void *ctx) #ifdef CONFIG_WPS -static int eapol_sm_wps_cred(void *ctx, struct wps_credential *cred) +static int eapol_sm_wps_cred(void *ctx, const struct wps_credential *cred) { struct eapol_sm *sm = ctx; wpa_printf(MSG_DEBUG, "EAPOL: received new WPS credential"); diff --git a/src/eapol_supp/eapol_supp_sm.h b/src/eapol_supp/eapol_supp_sm.h index 637a1a4..601ff38 100644 --- a/src/eapol_supp/eapol_supp_sm.h +++ b/src/eapol_supp/eapol_supp_sm.h @@ -223,7 +223,7 @@ struct eapol_ctx { * new credentials. This can be left %NULL if no WPS functionality is * enabled. */ - int (*wps_cred)(void *ctx, struct wps_credential *cred); + int (*wps_cred)(void *ctx, const struct wps_credential *cred); /** * eap_param_needed - Notify that EAP parameter is needed |