aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_ssid.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-03-28 09:05:13 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-28 09:05:13 (GMT)
commita52410c29ff7edd55b10bdf1ec6bae371ddaca2f (patch)
tree08c93fbf19d77cc8f7934c66442260bfe971593d /wpa_supplicant/config_ssid.h
parentb898a6ee722bb5015b55c7568da461f38b7d288c (diff)
downloadhostap-a52410c29ff7edd55b10bdf1ec6bae371ddaca2f.zip
hostap-a52410c29ff7edd55b10bdf1ec6bae371ddaca2f.tar.gz
hostap-a52410c29ff7edd55b10bdf1ec6bae371ddaca2f.tar.bz2
Allow PSK/passphrase to be set only when needed
The new network profile parameter mem_only_psk=1 can be used to specify that the PSK/passphrase for that network is requested over the control interface (ctrl_iface or D-Bus) similarly to the EAP network parameter requests. The PSK/passphrase can then be configured temporarily in a way that prevents it from getting stored to the configuration file. For example: Event: CTRL-REQ-PSK_PASSPHRASE-0:PSK or passphrase needed for SSID test-wpa2-psk Response: CTRL-RSP-PSK_PASSPHRASE-0:"qwertyuiop" Note: The response value uses the same encoding as the psk network profile parameter, i.e., passphrase is within double quotation marks. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config_ssid.h')
-rw-r--r--wpa_supplicant/config_ssid.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/config_ssid.h b/wpa_supplicant/config_ssid.h
index 7c826cf..23a37cc 100644
--- a/wpa_supplicant/config_ssid.h
+++ b/wpa_supplicant/config_ssid.h
@@ -181,6 +181,14 @@ struct wpa_ssid {
char *ext_psk;
/**
+ * mem_only_psk - Whether to keep PSK/passphrase only in memory
+ *
+ * 0 = allow psk/passphrase to be stored to the configuration file
+ * 1 = do not store psk/passphrase to the configuration file
+ */
+ int mem_only_psk;
+
+ /**
* pairwise_cipher - Bitfield of allowed pairwise ciphers, WPA_CIPHER_*
*/
int pairwise_cipher;