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/15 02:27:35 UTC

[13/50] [abbrv] incubator-mynewt-core git commit: BLE Host - Never persist our own IRK in keystore.

BLE Host - Never persist our own IRK in keystore.


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/830149ea
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/830149ea
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/830149ea

Branch: refs/heads/develop
Commit: 830149ea66137b43d72efc31f05dc3d48abf810f
Parents: a481a84
Author: Christopher Collins <cc...@apache.org>
Authored: Wed Jun 8 15:03:18 2016 +0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Jun 14 19:23:35 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/ble_sm.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/830149ea/net/nimble/host/src/ble_sm.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_sm.c b/net/nimble/host/src/ble_sm.c
index d15960c..ade4702 100644
--- a/net/nimble/host/src/ble_sm.c
+++ b/net/nimble/host/src/ble_sm.c
@@ -587,6 +587,7 @@ ble_sm_persist_keys(struct ble_sm_proc *proc)
 
     authenticated = proc->flags & BLE_SM_PROC_F_AUTHENTICATED;
 
+    proc->our_keys.irk_valid = 0;
     ble_sm_fill_store_value(peer_addr_type, peer_addr, authenticated,
                             &proc->our_keys, &value_sec);
     ble_store_write_slv_sec(&value_sec);