zephyr/samples/bluetooth/shell
Szymon Janc 341f81bd81 Bluetooth: SMP: Refactor keys handling
This refactor the way stored keys are handled to avoid overwriting
existing keys with new keys in case of pairing failed. Main goal is
to delay update of keys (including type and encryption size) until
link is succesfully encrypted with new key (legacy STK or LE SC LTK).

To fix this properly, TK is used to store STK or LE SC LTK and updates
of keys properties are done only on successfull encryption. This makes
code less error prone since update is done only in one place in code.
Also quering SMP code for current key makes sure that correct keys is
used in case of re-pairing.

Change-Id: I6b9e3d8229de522143e0d1fbfe0bd8223dad2a56
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
2016-02-05 20:24:52 -05:00
..
src Bluetooth: L2CAP: Implement segmentation for incoming packets 2016-02-05 20:24:51 -05:00
Makefile Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
README Bluetooth: Update README with recent changes 2016-02-05 20:13:57 -05:00
prj.mdef Rename VPF files to use MDEF file extension 2016-02-05 20:14:15 -05:00
prj_arm.conf Bluetooth: samples/shell: Remove dependency on CONFIG_EXPERIMENTAL 2016-02-05 20:24:47 -05:00
prj_x86.conf Bluetooth: SMP: Refactor keys handling 2016-02-05 20:24:52 -05:00
testcase.ini initial commit for next-gen sanity checks 2016-02-05 20:14:42 -05:00

README

First serial line is multiplexed with qemu monitor and bluetooth shell
(btshell) is running there. Use help to check list of commands.