aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_winreg.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-18 10:27:12 (GMT)
committerJouni Malinen <j@w1.fi>2009-01-18 10:27:12 (GMT)
commit476621644cd3eb94f329bda755f3c639239d321c (patch)
tree202a0e00b9768a91d13606772316c4e4fa28de18 /wpa_supplicant/config_winreg.c
parenteca6e0a9a586b999ff9a51315cd741650997366f (diff)
downloadhostap-476621644cd3eb94f329bda755f3c639239d321c.zip
hostap-476621644cd3eb94f329bda755f3c639239d321c.tar.gz
hostap-476621644cd3eb94f329bda755f3c639239d321c.tar.bz2
WPS: Add configurable option for processing credentials externally
The wps_cred_process option can be used to configure wpa_supplicant to send received Credential attributes for external processing over ctrl_iface and dbus. This allows external programs to update their configuration when WPS is used to provision new networks.
Diffstat (limited to 'wpa_supplicant/config_winreg.c')
-rw-r--r--wpa_supplicant/config_winreg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/config_winreg.c b/wpa_supplicant/config_winreg.c
index 0199642..456d417 100644
--- a/wpa_supplicant/config_winreg.c
+++ b/wpa_supplicant/config_winreg.c
@@ -251,6 +251,8 @@ static int wpa_config_read_global(struct wpa_config *config, HKEY hk)
hk, TEXT("device_type"));
if (wpa_config_read_global_os_version(config, hk))
errors++;
+ wpa_config_read_reg_dword(hk, TEXT("wps_cred_processing"),
+ &config->wps_cred_processing);
#endif /* CONFIG_WPS */
return errors ? -1 : 0;
@@ -573,6 +575,8 @@ static int wpa_config_write_global(struct wpa_config *config, HKEY hk)
WPA_GET_BE32(config->os_version));
wpa_config_write_reg_string(hk, "os_version", vbuf);
}
+ wpa_config_write_reg_dword(hk, TEXT("wps_cred_processing"),
+ config->wps_cred_processing, 0);
#endif /* CONFIG_WPS */
return 0;