aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_supp/eapol_supp_sm.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-11-28 18:32:13 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-28 18:32:13 (GMT)
commit116654ce24fea104bd0eeb66499948df4d4df3ce (patch)
tree1662391971bc8a900bdfb216a4e10baece082f73 /src/eapol_supp/eapol_supp_sm.h
parentbcbbc7af45cc4b84a5c10e65f4283fdf68cd785a (diff)
downloadhostap-116654ce24fea104bd0eeb66499948df4d4df3ce.zip
hostap-116654ce24fea104bd0eeb66499948df4d4df3ce.tar.gz
hostap-116654ce24fea104bd0eeb66499948df4d4df3ce.tar.bz2
WPS: Moved wps_context initialization into wps_supplicant.c
The wps_context data is now managed at wpa_supplicant, not EAP-WSC. This makes wpa_supplicant design for WPS match with hostapd one and also makes it easier configure whatever parameters and callbacks are needed for WPS.
Diffstat (limited to 'src/eapol_supp/eapol_supp_sm.h')
-rw-r--r--src/eapol_supp/eapol_supp_sm.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.h b/src/eapol_supp/eapol_supp_sm.h
index 601ff38..38975fc 100644
--- a/src/eapol_supp/eapol_supp_sm.h
+++ b/src/eapol_supp/eapol_supp_sm.h
@@ -63,7 +63,6 @@ struct eapol_config {
struct eapol_sm;
struct wpa_config_blob;
-struct wps_credential;
/**
* struct eapol_ctx - Global (for all networks) EAPOL state machine context
@@ -215,15 +214,11 @@ struct eapol_ctx {
const u8 *uuid;
/**
- * wps_cred - Notify that new credential was received from WPS
- * @ctx: Callback context (ctx)
- * Returns: 0 on success (credential stored), -1 on failure
+ * wps - WPS context data
*
- * This callback is only needed when using WPS Enrollee to configure
- * new credentials. This can be left %NULL if no WPS functionality is
- * enabled.
+ * This is only used by EAP-WSC and can be left %NULL if not available.
*/
- int (*wps_cred)(void *ctx, const struct wps_credential *cred);
+ struct wps_context *wps;
/**
* eap_param_needed - Notify that EAP parameter is needed