commit cb5939f94121013fe2dc9a537769bc2540ca2ae1
parent 9c07741a0af5703c3fe65a5b679bf345468269fa
Author: Denis Kenzior <denkenz@gmail.com>
Date: Mon, 12 Jul 2021 16:44:53 -0500
network: Set SAE-PT into handshake
If the authenticator is SAE H2E capable, add the relevant PTs into the
handshake_state to enable use of SAE H2E.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/network.c b/src/network.c
@@ -425,6 +425,13 @@ static int network_set_handshake_secrets_psk(struct network *network,
return -ENOKEY;
handshake_state_set_passphrase(hs, network->passphrase);
+
+ if (ie_rsnxe_capable(hs->authenticator_rsnxe,
+ IE_RSNX_SAE_H2E)) {
+ l_debug("Authenticator is SAE H2E capable");
+ handshake_state_add_ecc_sae_pt(hs, network->sae_pt_19);
+ handshake_state_add_ecc_sae_pt(hs, network->sae_pt_20);
+ }
} else {
const uint8_t *psk = network_get_psk(network);