summaryrefslogtreecommitdiff
path: root/mesh/keyring.h
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2019-09-06 09:24:34 -0700
committerBrian Gix <brian.gix@intel.com>2019-09-10 09:32:40 -0700
commitafe196816af33c1e6c0f0d5fd09ebf8e796830ce (patch)
treee40a40ed8c6216658f5495cc6a1fb87dc94937e8 /mesh/keyring.h
parent1368a609f962e36d2c1b4df9a6dcc58568681640 (diff)
downloadbluez-afe196816af33c1e6c0f0d5fd09ebf8e796830ce.tar.gz
mesh: Automate AppKey update on KR phase 2-->3-->0
Designed so that if an unexpcted abort() occurs, the bound NetKey remains in state 2 or 3. If successful, the NetKey is set to Phase 0, and all bound AppKeys are in their correct state.
Diffstat (limited to 'mesh/keyring.h')
-rw-r--r--mesh/keyring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh/keyring.h b/mesh/keyring.h
index 167191013..2fab6b0dc 100644
--- a/mesh/keyring.h
+++ b/mesh/keyring.h
@@ -38,6 +38,7 @@ bool keyring_get_net_key(struct mesh_node *node, uint16_t net_idx,
bool keyring_del_net_key(struct mesh_node *node, uint16_t net_idx);
bool keyring_put_app_key(struct mesh_node *node, uint16_t app_idx,
uint16_t net_idx, struct keyring_app_key *key);
+bool keyring_finalize_app_keys(struct mesh_node *node, uint16_t net_id);
bool keyring_get_app_key(struct mesh_node *node, uint16_t app_idx,
struct keyring_app_key *key);
bool keyring_del_app_key(struct mesh_node *node, uint16_t app_idx);