tools/mesh-cfgclient: Disallow sending a non-existing key
authorInga Stotland <inga.stotland@intel.com>
Sat, 7 Dec 2019 06:12:45 +0000 (22:12 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 20:52:15 +0000 (02:22 +0530)
commitf23a40f6dbabd36737fbe6208369f3267b792ae3
tree7413cc5b15939795dc45a6f39c7ae3cef07e14f3
parent805b7967513929d45e29ea6ff298110241933273
tools/mesh-cfgclient: Disallow sending a non-existing key

Prior to sending either NetKeyAdd or AppKeyAdd message to a
remote node, check if the key exists locally.

Change-Id: I7ba29c91b15ccbffbdffa0ef206e659843f955ea
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
tools/mesh-cfgclient.c
tools/mesh/keys.c
tools/mesh/keys.h