Skip to content
Commit a6737bb8 authored by Mariusz Skamra's avatar Mariusz Skamra Committed by Anas Nashif
Browse files

Bluetooth: Mesh: Fix rejecting invalid remote public key



The code was already rejecting the key, however that rejection
happened only after we had already sent our public key as response,
which got interpreted as acceptance by the tester (PTS).

This fixes issue that d4fd2670
supposed to fix. The problem is bt_dh_key_gen is async.
Local public key cannot be sent from the same context
the bt_dh_key_gen is called because we don't know yet
if remote key is valid.

Fixes MESH/NODE/PROV/BI-13-C.

Signed-off-by: default avatarMariusz Skamra <mariusz.skamra@codecoup.pl>
parent 84bf14d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment