zephyr/subsys/bluetooth/mesh
Mariusz Skamra 83b50f6bee 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 d4fd267086
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: Mariusz Skamra <mariusz.skamra@codecoup.pl>
2019-08-07 17:13:32 +02:00
..
CMakeLists.txt
Kconfig
TODO
access.c
access.h
adv.c
adv.h
beacon.c
beacon.h
cfg_cli.c
cfg_srv.c
crypto.c
crypto.h
foundation.h
friend.c
friend.h
health_cli.c
health_srv.c
lpn.c
lpn.h
main.c
mesh.h
net.c
net.h
prov.c Bluetooth: Mesh: Fix rejecting invalid remote public key 2019-08-07 17:13:32 +02:00
prov.h
proxy.c
proxy.h
settings.c
settings.h
shell.c
test.c
test.h
transport.c
transport.h