You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/06/05 11:52:25 UTC

[38/43] incubator-mynewt-core git commit: BLE Host - Rearrange SM test code.

BLE Host - Rearrange SM test code.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/fcafe0a2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/fcafe0a2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/fcafe0a2

Branch: refs/heads/develop
Commit: fcafe0a2be165787b727cca8b0d27ac9ab71c132
Parents: caf7588
Author: Christopher Collins <cc...@apache.org>
Authored: Fri Jun 3 12:47:24 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Sun Jun 5 19:17:09 2016 +0800

----------------------------------------------------------------------
 net/nimble/host/include/host/ble_store.h |    7 +-
 net/nimble/host/src/test/ble_sm_test.c   | 2933 +++++++++++++------------
 2 files changed, 1473 insertions(+), 1467 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/fcafe0a2/net/nimble/host/include/host/ble_store.h
----------------------------------------------------------------------
diff --git a/net/nimble/host/include/host/ble_store.h b/net/nimble/host/include/host/ble_store.h
index cbed45f..8af689c 100644
--- a/net/nimble/host/include/host/ble_store.h
+++ b/net/nimble/host/include/host/ble_store.h
@@ -22,8 +22,11 @@
 
 #include <inttypes.h>
 
-/* XXX: Rethink our/peer distinction.  Might make sense to unify keys such that
- * each entry contains both peers' addresses.
+/* XXX: It probably doesn't make sense to persist all security material as a
+ * single record.  We may need to separate IRK from LTK and CSRK.
+ *
+ * Also, the master / slave distinction is not right.  It makes sense for the
+ * LTK in legacy pairing, but not for other security operations.
  */
 #define BLE_STORE_OBJ_TYPE_MST_SEC      1
 #define BLE_STORE_OBJ_TYPE_SLV_SEC      2