aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-01-17 20:28:42 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-01-19 00:14:45 +0200
commit80c54f796b61b11f495818f75b198e9513f3bb94 (patch)
tree1158b81e798d1dcc1e3c13938936a2f34af01475 /src/storage.h
parent3baac3fdbedb8eb4664039b661cc5707949fb7ac (diff)
downloadbluez-80c54f796b61b11f495818f75b198e9513f3bb94.tar.gz
bluez-80c54f796b61b11f495818f75b198e9513f3bb94.tar.xz
bluez-80c54f796b61b11f495818f75b198e9513f3bb94.zip
Add storage functions to handle SMP keys
For now, only the Long Term Key (LTK) is stored.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h
index 4046e99b..2f145d04 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -89,6 +89,8 @@ int read_device_ccc(bdaddr_t *local, bdaddr_t *peer, uint16_t handle,
int write_device_ccc(bdaddr_t *local, bdaddr_t *peer, uint16_t handle,
uint16_t value);
void delete_device_ccc(bdaddr_t *local, bdaddr_t *peer);
+int write_longtermkeys(bdaddr_t *local, bdaddr_t *peer, const char *key);
+gboolean has_longtermkeys(bdaddr_t *local, bdaddr_t *peer);
#define PNP_UUID "00001200-0000-1000-8000-00805f9b34fb"