summaryrefslogtreecommitdiff
path: root/android/bluetooth.h
diff options
context:
space:
mode:
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>2014-05-22 21:06:18 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-05-26 10:28:16 +0200
commit2003db38974eb073539e5947d9a809df7a2dd5b1 (patch)
treee186b39c63b96447780c255a7ca3ccbde61323d6 /android/bluetooth.h
parent84bbaa3971f057c84447d0f2a222d749add57fed (diff)
downloadbluez-2003db38974eb073539e5947d9a809df7a2dd5b1.tar.gz
android/bluetooth: Expose API to get CSRK for device
GATT will take CSRK key and sign counter each time it needs it to sign att package or to verify att package
Diffstat (limited to 'android/bluetooth.h')
-rw-r--r--android/bluetooth.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/bluetooth.h b/android/bluetooth.h
index a0b81a636..9c88f624b 100644
--- a/android/bluetooth.h
+++ b/android/bluetooth.h
@@ -21,6 +21,11 @@
*
*/
+enum bt_csrk_type {
+ LOCAL_CSRK,
+ REMOTE_CSRK,
+};
+
typedef void (*bt_bluetooth_ready)(int err, const bdaddr_t *addr);
bool bt_bluetooth_start(int index, bool mgmt_dbg, bt_bluetooth_ready cb);
@@ -56,3 +61,6 @@ typedef void (*bt_read_device_rssi_done)(uint8_t status, const bdaddr_t *addr,
int8_t rssi, void *user_data);
bool bt_read_device_rssi(const bdaddr_t *addr, bt_read_device_rssi_done cb,
void *user_data);
+
+bool bt_get_csrk(const bdaddr_t *addr, enum bt_csrk_type type,
+ uint8_t key[16], uint32_t *sign_cnt);