aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-17 20:17:12 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 09:53:42 (GMT)
commit6d2139a7155a6e62157ae4c30b238db4dc87a18d (patch)
treef75f9ab7e47e717b26cc761f193d79eec00acaec /wpa_supplicant
parent029256f8dd987dc2de3b2ed80952342e40fc848d (diff)
downloadhostap-06-6d2139a7155a6e62157ae4c30b238db4dc87a18d.zip
hostap-06-6d2139a7155a6e62157ae4c30b238db4dc87a18d.tar.gz
hostap-06-6d2139a7155a6e62157ae4c30b238db4dc87a18d.tar.bz2
WPS: Provide the unparsed Credential attribute to cred_cb()
This makes it easier to pass the credential data to external programs (e.g., Network Manager) for processing. The actual use of this data is not yet included in hostapd/wpa_supplicant. (cherry picked from commit eca6e0a9a586b999ff9a51315cd741650997366f)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wps_supplicant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index a69dfec..fb1d833 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -58,6 +58,9 @@ static int wpa_supplicant_wps_cred(void *ctx,
wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_CRED_RECEIVED);
+ wpa_hexdump_key(MSG_DEBUG, "WPS: Received Credential attribute",
+ cred->cred_attr, cred->cred_attr_len);
+
if (cred->auth_type != WPS_AUTH_OPEN &&
cred->auth_type != WPS_AUTH_SHARED &&
cred->auth_type != WPS_AUTH_WPAPSK &&