From a446569b866591ba071564e9222eef6453edfc05 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 13 Sep 2017 11:28:44 +0300 Subject: mesh: Add 'security' command This adds 'security' command which can be used to display and change the provision security level: [meshctl]# security Provision Security Level set to 1 (medium) [meshctl]# security 2 Provision Security Level set to 2 (high) Note: This doesn't change the default which is still medium. --- mesh/prov.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesh/prov.h') diff --git a/mesh/prov.h b/mesh/prov.h index 94ce7a1b5..2587df8fb 100644 --- a/mesh/prov.h +++ b/mesh/prov.h @@ -29,3 +29,5 @@ bool prov_open(struct mesh_node *node, GDBusProxy *prov_in, uint16_t net_idx, provision_done_cb cb, void *user_data); bool prov_data_ready(struct mesh_node *node, uint8_t *buf, uint8_t len); bool prov_complete(struct mesh_node *node, uint8_t status); +bool prov_set_sec_level(uint8_t level); +uint8_t prov_get_sec_level(void); -- cgit v1.2.1