Commit: 206bee144e2b7e3190677ffbf4f231dd2e728f5c
Parent: acbea9a0f7bda8b3d15aba20f211c32628556f2e
Author: MichaƂ Narajowski <michal.narajowski@codecoup.pl>
Committer: Szymon Janc <szymon.janc@codecoup.pl>
Date: 2016-10-22 22:31:31
Tree: 2d6000f3c81cd66a40d99b5ad4c817b454577de3

core/adapter: Add support for enabling privacy This adds support for loading local IRK key when adapter is configured. In case IRK is not present new key is generated and stored. In case of errors privacy is explicitly disabled. We ensure that we memset IRK to zero before disabling privacy. IRK is stored in %s/identity file. Privacy setting is configured globally in main.conf. In the future we may add per device configuration in %s/settings.

Diffstat

M doc/settings-storage.txt | 12 ++++++++++++
M src/adapter.c | 122 ++++++++++++++++++++++++++++++++++++++++
M src/hcid.h | 2 ++
M src/main.c | 21 +++++++++++++++++++++
M src/main.conf | 7 +++++++

5 files changed, 164 insertions(+), 0 deletions(-)

View Full Diff | Patch