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:00 UTC
[13/43] incubator-mynewt-core git commit: BLE Host - Don't forget to
persist keys.
BLE Host - Don't forget to persist keys.
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/e4b08e80
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e4b08e80
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e4b08e80
Branch: refs/heads/develop
Commit: e4b08e805d1cf151d36f23c3ae3321e2a740d1cd
Parents: d9b0932
Author: Christopher Collins <cc...@apache.org>
Authored: Mon May 30 20:19:53 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Sun Jun 5 19:08:50 2016 +0800
----------------------------------------------------------------------
net/nimble/host/src/ble_sm.c | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e4b08e80/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 3b56237..31d3c29 100644
--- a/net/nimble/host/src/ble_sm.c
+++ b/net/nimble/host/src/ble_sm.c
@@ -1288,6 +1288,7 @@ ble_sm_key_exch_go(struct ble_sm_proc *proc,
/* The procedure is now complete. */
proc->flags |= BLE_SM_PROC_F_BONDED;
proc->state = BLE_SM_PROC_STATE_NONE;
+ res->persist_keys = 1;
res->enc_cb = 1;
}
@@ -1407,6 +1408,7 @@ ble_sm_rx_key_exchange(uint16_t conn_handle, uint8_t op, struct os_mbuf **om,
/* The procedure is now complete. */
proc->flags |= BLE_SM_PROC_F_BONDED;
proc->state = BLE_SM_PROC_STATE_NONE;
+ res->persist_keys = 1;
res->enc_cb = 1;
}
}