You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2021/12/30 11:50:30 UTC
[mynewt-nimble] 03/06: nimble/mesh: Fix bt_mesh_keys_resolve declaration
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit c79a7abbbdcc091136efba684380ada38d1e0ab2
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Thu Dec 23 14:30:30 2021 +0100
nimble/mesh: Fix bt_mesh_keys_resolve declaration
app_key is expected to be a pointer to pointer and not
artay of pointers.
---
nimble/host/mesh/src/app_keys.c | 2 +-
nimble/host/mesh/src/app_keys.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nimble/host/mesh/src/app_keys.c b/nimble/host/mesh/src/app_keys.c
index acc51f2..cfe8257 100644
--- a/nimble/host/mesh/src/app_keys.c
+++ b/nimble/host/mesh/src/app_keys.c
@@ -495,7 +495,7 @@ ssize_t bt_mesh_app_keys_get(uint16_t net_idx, uint16_t app_idxs[], size_t max,
int bt_mesh_keys_resolve(struct bt_mesh_msg_ctx *ctx,
struct bt_mesh_subnet **sub,
- const uint8_t *app_key[16], uint8_t *aid)
+ const uint8_t **app_key, uint8_t *aid)
{
struct app_key *app = NULL;
diff --git a/nimble/host/mesh/src/app_keys.h b/nimble/host/mesh/src/app_keys.h
index 3ef9ce7..40df664 100644
--- a/nimble/host/mesh/src/app_keys.h
+++ b/nimble/host/mesh/src/app_keys.h
@@ -41,7 +41,7 @@ int bt_mesh_app_key_set(uint16_t app_idx, uint16_t net_idx,
*/
int bt_mesh_keys_resolve(struct bt_mesh_msg_ctx *ctx,
struct bt_mesh_subnet **sub,
- const uint8_t *app_key[16], uint8_t *aid);
+ const uint8_t **app_key, uint8_t *aid);
/** @brief Iterate through all matching application keys and call @c cb on each.
*