diff options
author | Jouni Malinen <j@w1.fi> | 2015-03-28 09:05:13 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-03-28 09:05:13 (GMT) |
commit | a52410c29ff7edd55b10bdf1ec6bae371ddaca2f (patch) | |
tree | 08c93fbf19d77cc8f7934c66442260bfe971593d /wpa_supplicant/wpas_glue.h | |
parent | b898a6ee722bb5015b55c7568da461f38b7d288c (diff) | |
download | hostap-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/wpas_glue.h')
-rw-r--r-- | wpa_supplicant/wpas_glue.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/wpas_glue.h b/wpa_supplicant/wpas_glue.h index 9808c22..5585e56 100644 --- a/wpa_supplicant/wpas_glue.h +++ b/wpa_supplicant/wpas_glue.h @@ -22,4 +22,7 @@ const char * wpa_supplicant_ctrl_req_to_string(enum wpa_ctrl_req_type field, enum wpa_ctrl_req_type wpa_supplicant_ctrl_req_from_string(const char *field); +void wpas_send_ctrl_req(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, + const char *field_name, const char *txt); + #endif /* WPAS_GLUE_H */ |