]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Support retrieving of configurator's private key
authorPurushottam Kushwaha <pkushwah@codeaurora.org>
Fri, 16 Mar 2018 10:04:21 +0000 (15:34 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 16 Mar 2018 18:55:32 +0000 (20:55 +0200)
commit8179ae3a2a375ff293b87eab2e9761f8919aa516
tree8ec98b98cbabc4a7516a9418dd158d2a27c54cb1
parent4bc801ab42eb9308e82bc9ac35f82c13d497c80e
DPP: Support retrieving of configurator's private key

To retain configurator information across hostapd/wpa_supplicant
restart, private key need to be maintained to generate a valid pair of
authentication keys (connector, netaccess_key, csign) for new enrollees
in the network.

Add a DPP_CONFIGURATOR_GET_KEY control interface API through which the
private key of an existing configurator can be fetched.

Command format:
DPP_CONFIGURATOR_GET_KEY <configurator_id>

The output from this command can then be used with
"DPP_CONFIGURATOR_ADD key=<hexdump>" to create the same key again.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/ctrl_iface.c
hostapd/hostapd_cli.c
src/ap/dpp_hostapd.c
src/ap/dpp_hostapd.h
src/common/dpp.c
src/common/dpp.h
wpa_supplicant/ctrl_iface.c
wpa_supplicant/dpp_supplicant.c
wpa_supplicant/dpp_supplicant.h
wpa_supplicant/wpa_cli.c