aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-03 19:12:55 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-03 19:15:42 (GMT)
commit02af9c90fb8589f78ebed43a6f8f58777deaa412 (patch)
treebee47090d0aa484bfc7e37875af5c8015df88e6a /wpa_supplicant/interworking.c
parent0ebb23e340e625d59923039d0a4eb6379bdad992 (diff)
downloadhostap-02af9c90fb8589f78ebed43a6f8f58777deaa412.zip
hostap-02af9c90fb8589f78ebed43a6f8f58777deaa412.tar.gz
hostap-02af9c90fb8589f78ebed43a6f8f58777deaa412.tar.bz2
EXT PW: Allow Interwork cred block to use external storage for password
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index e0e209c..ebc668b 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -894,9 +894,15 @@ static int interworking_set_eap_params(struct wpa_ssid *ssid,
wpa_config_set_quoted(ssid, "identity", cred->username) < 0)
return -1;
- if (cred->password && cred->password[0] &&
- wpa_config_set_quoted(ssid, "password", cred->password) < 0)
- return -1;
+ if (cred->password && cred->password[0]) {
+ if (cred->ext_password &&
+ wpa_config_set(ssid, "password", cred->password, 0) < 0)
+ return -1;
+ if (!cred->ext_password &&
+ wpa_config_set_quoted(ssid, "password", cred->password) <
+ 0)
+ return -1;
+ }
if (cred->client_cert && cred->client_cert[0] &&
wpa_config_set_quoted(ssid, "client_cert", cred->client_cert) < 0)