]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant.c
Allow PSK/passphrase to be set only when needed
authorJouni Malinen <j@w1.fi>
Sat, 28 Mar 2015 09:05:13 +0000 (11:05 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Mar 2015 09:05:13 +0000 (11:05 +0200)
commita52410c29ff7edd55b10bdf1ec6bae371ddaca2f
tree08c93fbf19d77cc8f7934c66442260bfe971593d
parentb898a6ee722bb5015b55c7568da461f38b7d288c
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>
src/common/defs.h
wpa_supplicant/config.c
wpa_supplicant/config_file.c
wpa_supplicant/config_ssid.h
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant.conf
wpa_supplicant/wpas_glue.c
wpa_supplicant/wpas_glue.h