--- mesh/keyring.c | 4 ++-- mesh/keyring.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mesh/keyring.c b/mesh/keyring.c index cb091e15b613..3a09876777fd 100644 --- a/mesh/keyring.c +++ b/mesh/keyring.c @@ -67,7 +67,7 @@ static int open_key_file(struct mesh_node *node, const char *key_dir, } bool keyring_put_net_key(struct mesh_node *node, uint16_t net_idx, - struct keyring_net_key *key) + const struct keyring_net_key *key) { bool result = false; int fd; @@ -191,7 +191,7 @@ bool keyring_finalize_app_keys(struct mesh_node *node, uint16_t net_idx) } bool keyring_put_remote_dev_key(struct mesh_node *node, uint16_t unicast, - uint8_t count, uint8_t dev_key[16]) + uint8_t count, const uint8_t dev_key[16]) { const char *node_path; char key_file[PATH_MAX]; diff --git a/mesh/keyring.h b/mesh/keyring.h index efc499ac267e..e2088edfde14 100644 --- a/mesh/keyring.h +++ b/mesh/keyring.h @@ -23,7 +23,7 @@ struct keyring_app_key { }; bool keyring_put_net_key(struct mesh_node *node, uint16_t net_idx, - struct keyring_net_key *key); + const struct keyring_net_key *key); bool keyring_get_net_key(struct mesh_node *node, uint16_t net_idx, struct keyring_net_key *key); bool keyring_del_net_key(struct mesh_node *node, uint16_t net_idx); @@ -36,7 +36,7 @@ bool keyring_del_app_key(struct mesh_node *node, uint16_t app_idx); bool keyring_get_remote_dev_key(struct mesh_node *node, uint16_t unicast, uint8_t dev_key[16]); bool keyring_put_remote_dev_key(struct mesh_node *node, uint16_t unicast, - uint8_t count, uint8_t dev_key[16]); + uint8_t count, const uint8_t dev_key[16]); bool keyring_del_remote_dev_key(struct mesh_node *node, uint16_t unicast, uint8_t count); bool keyring_del_remote_dev_key_all(struct mesh_node *node, uint16_t unicast); -- 2.43.0