diff options
author | Brian Gix <brian.gix@intel.com> | 2019-07-16 15:56:42 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-07-18 09:49:21 -0700 |
commit | 51d9bb20dba0236a21e1dd46ab204e94237de288 (patch) | |
tree | fb5fcdb9c0b6894ea6ad2278e38042c85f234916 /mesh/appkey.h | |
parent | faa7894b7beb539b0b7f566570ab852c83f5cc2c (diff) | |
download | bluez-51d9bb20dba0236a21e1dd46ab204e94237de288.tar.gz |
mesh: Add bound Net Index lookup for App Keys
This patch also normalizes the naming convention in favor of key_aid
when referring to the calculated AID of the used Access Layer key.
Diffstat (limited to 'mesh/appkey.h')
-rw-r--r-- | mesh/appkey.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh/appkey.h b/mesh/appkey.h index 1c22e801c..4c135580a 100644 --- a/mesh/appkey.h +++ b/mesh/appkey.h @@ -34,6 +34,7 @@ bool appkey_msg_in_replay_cache(struct mesh_net *net, uint16_t idx, const uint8_t *appkey_get_key(struct mesh_net *net, uint16_t app_idx, uint8_t *key_id); bool appkey_have_key(struct mesh_net *net, uint16_t app_idx); +uint16_t appkey_net_idx(struct mesh_net *net, uint16_t app_idx); int appkey_key_add(struct mesh_net *net, uint16_t net_idx, uint16_t app_idx, const uint8_t *new_key); int appkey_key_update(struct mesh_net *net, uint16_t net_idx, uint16_t app_idx, |