DPP2: hostapd as TCP Relay
The new hostapd configuration parameter dpp_controller can now be used with the following subparameter values: ipaddr=<IP address> pkhash=<hexdump>. This adds a new Controller into the configuration (i.e., more than one can be configured) and all incoming DPP exchanges that match the specified Controller public key hash are relayed to the particular Controller. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
88a78bdde4
commit
e00f780e2b
7 changed files with 154 additions and 7 deletions
|
@ -559,6 +559,20 @@ static void hostapd_config_free_sae_passwords(struct hostapd_bss_config *conf)
|
|||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_DPP2
|
||||
static void hostapd_dpp_controller_conf_free(struct dpp_controller_conf *conf)
|
||||
{
|
||||
struct dpp_controller_conf *prev;
|
||||
|
||||
while (conf) {
|
||||
prev = conf;
|
||||
conf = conf->next;
|
||||
os_free(prev);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_DPP2 */
|
||||
|
||||
|
||||
void hostapd_config_free_bss(struct hostapd_bss_config *conf)
|
||||
{
|
||||
if (conf == NULL)
|
||||
|
@ -740,6 +754,9 @@ void hostapd_config_free_bss(struct hostapd_bss_config *conf)
|
|||
os_free(conf->dpp_connector);
|
||||
wpabuf_free(conf->dpp_netaccesskey);
|
||||
wpabuf_free(conf->dpp_csign);
|
||||
#ifdef CONFIG_DPP2
|
||||
hostapd_dpp_controller_conf_free(conf->dpp_controller);
|
||||
#endif /* CONFIG_DPP2 */
|
||||
#endif /* CONFIG_DPP */
|
||||
|
||||
hostapd_config_free_sae_passwords(conf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue