aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_passphrase.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-07 13:07:25 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-07 13:07:25 (GMT)
commit986de33d5c3e11dd08a26ed65eacede8b75aa339 (patch)
treea4cf15f08916a4ac42216e2f1c080fc784a27cc5 /wpa_supplicant/wpa_passphrase.c
parent771e2f7b3302f7741594f9c669a225f5aa64f9e9 (diff)
downloadhostap-986de33d5c3e11dd08a26ed65eacede8b75aa339.zip
hostap-986de33d5c3e11dd08a26ed65eacede8b75aa339.tar.gz
hostap-986de33d5c3e11dd08a26ed65eacede8b75aa339.tar.bz2
Convert remaining SSID routines from char* to u8*
This makes it more explicit that the SSID is not a null terminated C string. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wpa_passphrase.c')
-rw-r--r--wpa_supplicant/wpa_passphrase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_passphrase.c b/wpa_supplicant/wpa_passphrase.c
index a9ec236..9b568f0 100644
--- a/wpa_supplicant/wpa_passphrase.c
+++ b/wpa_supplicant/wpa_passphrase.c
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
return 1;
}
- pbkdf2_sha1(passphrase, ssid, os_strlen(ssid), 4096, psk, 32);
+ pbkdf2_sha1(passphrase, (u8 *) ssid, os_strlen(ssid), 4096, psk, 32);
printf("network={\n");
printf("\tssid=\"%s\"\n", ssid);