diff --git a/mesh/keyring.c b/mesh/keyring.c
index cb091e1..41e6074 100644
--- a/mesh/keyring.c
+++ b/mesh/keyring.c
}
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;
}
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 efc499a..e2088ed 100644
--- a/mesh/keyring.h
+++ b/mesh/keyring.h
};
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);
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);