Export to GitHub

btstack - issue #153

Add support for persistant Key storage under Linux


Posted on May 8, 2011 by Quick Wombat

The iPhone port uses a (iOS/iPhone) specfic database to store link keys, between sessions. This means that the client app only needs to authenticate once, and then can connect/disconnect at will.

This is implemented in the file 'remote_device_db_iphone.m'

We will need some form of persistant storage on the other platforms. Simon

Comment #1

Posted on May 8, 2011 by Quick Wombat

Patch adds rudementary keystore in memory, mallocs space for each key and stores them as a linked list.

Attachments

Comment #2

Posted on May 13, 2011 by Quick Wombat

missed the 'cmp_bd_addr' function.

Patches below for this and to add RFCOMM name->channel mapping. Simon.

Attachments

Comment #3

Posted on May 17, 2011 by Quick Wombat

one more thing... we need an 'extern' defined.

Attachments

Comment #4

Posted on May 17, 2011 by Swift Ox

thanks for double-checking. -> r1102

more restructuring will be needed, getting to that, but still hogged up with other projects.

Comment #5

Posted on May 17, 2011 by Quick Wombat

I think you still need to pull '0001-153v2_persistance_keys.patch' and '0002-153v2_persistance_keys.patch' as well.

Simon

Comment #6

Posted on May 27, 2011 by Swift Ox

hi. I'm ignoring 0001-153v2_persistance_keys.patch as utils.h already provides the BD_ADDR_CMP macro. I've applied and fixed compiler warnings in r1104

Status: Fixed

Labels:
Type-Defect Priority-Medium